Closed baggepinnen closed 5 years ago
Thanks for pointing this out! :) I think a slightly more idiomatic way is to remove the type definitions and make Julia figure it out. I think this is what @mohamed82008 also did in #227.
Closing this in favour of #231. Thanks for pointing this out and opening a pr!
This solves this issue https://github.com/kul-forbes/ProximalOperators.jl/issues/64 When
x
is aSubArray
,zero(x)
creates anArray
and the types will not be the same.similar(x::SubArray)
also results in anArray