Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not type stable #10

Closed
roflmaostc opened this issue Jun 26, 2024 · 1 comment
Closed

Not type stable #10

roflmaostc opened this issue Jun 26, 2024 · 1 comment

Comments

@roflmaostc
Copy link
Member

Would be good to fix

julia> @code_warntype gaussian_sep((128, 128))
MethodInstance for SeparableFunctions.gaussian_sep(::Tuple{Int64, Int64})
  from gaussian_sep(sz::Tuple{Vararg{Int64, N}}, args...; kwargs...) where N @ SeparableFunctions ~/.julia/packages/SeparableFunctions/qwiQm/src/specific.jl:71
Static Parameters
  N = 2
Arguments
  #self#::Core.Const(SeparableFunctions.gaussian_sep)
  sz::Tuple{Int64, Int64}
  args::Tuple{}
Body::Any
1%1 = SeparableFunctions.:(var"#gaussian_sep#38")::Core.Const(SeparableFunctions.var"#gaussian_sep#38")
│   %2 = Core.NamedTuple()::Core.Const(NamedTuple())
│   %3 = Base.pairs(%2)::Core.Const(Base.Pairs{Symbol, Union{}, Tuple{}, @NamedTuple{}}())
│   %4 = Core.tuple(%3, #self#, sz)::Tuple{Base.Pairs{Symbol, Union{}, Tuple{}, @NamedTuple{}}, typeof(gaussian_sep), Tuple{Int64, Int64}}%5 = Core._apply_iterate(Base.iterate, %1, %4, args)::Any
└──      return %5
@RainerHeintzmann
Copy link
Member

Is typestable now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants