cache(Zeros(n, n)) == cache(Zeros(n, n)) uses matrix ==
Closed this issue · 0 comments
DanielVandH commented
julia> using LazyArrays, FillArrays
julia> @which cache(Zeros(5)) == cache(Zeros(5)) # good
==(A::LazyArrays.CachedArray{<:Any, 1, <:Any, <:Zeros}, B::LazyArrays.CachedArray{<:Any, 1, <:Any, <:Zeros})
@ LazyArrays C:\Users\djv23\.julia\packages\LazyArrays\44w6E\src\padded.jl:121
julia> @which cache(Zeros(5, 5)) == cache(Zeros(5, 5)) # fallback
==(A::AbstractArray, B::AbstractArray)
@ Base abstractarray.jl:2937
Would be good to have them both be a specialised definition to make it easier to do ==
being Zeros
-backed cache
s. Will make a pr