You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the Conv operator as the first argument matrix-like operator in the Krylov.jl optimization functions.
It fails because the size() function applied to a Conv object does not return the expected tuple. Instead of
(m, n)
The Krylov.jl optimizer gets:
((m,), (n,))
If I override Base.size, it all works beautifully. Shouldn't the size operator conform to what is expected of a Matrix-like operator? Am I doing something wrong?
Edit: in order to silence a warning, I also had to override eltype() to return Float64 (in my case) instead of Any.