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
Did the strided array interface change? I'm getting errors in Julia v1.5 from something that conformed to the interface due to elsize not being defined:
Got exception outside of a @test
MethodError: no method matching elsize(::Type{BlockArrays.PseudoBlockArray{Float64,2,Array{Float64,2},Tuple{BlockArrays.BlockedUnitRange{Array{Int64,1}},BlockArrays.BlockedUnitRange{Array{Int64,1}}}}})
Closest candidates are:elsize(!Matched::Type{var"#s91"}wherevar"#s91"<:(Array{T,N} where N)) where T at array.jl:220elsize(!Matched::Base.CodeUnits{T,S}where S<:AbstractString) where T at strings/basic.jl:724elsize(!Matched::Random.UnsafeView{T}) where T at /Users/sheehanolver/Projects/julia-1.5/usr/share/julia/stdlib/v1.5/Random/src/RNGs.jl:440...
Stacktrace:
[1] elsize(::BlockArrays.PseudoBlockArray{Float64,2,Array{Float64,2},Tuple{BlockArrays.BlockedUnitRange{Array{Int64,1}},BlockArrays.BlockedUnitRange{Array{Int64,1}}}}) at ./abstractarray.jl:153
[2] _memory_offset(::BlockArrays.PseudoBlockArray{Float64,2,Array{Float64,2},Tuple{BlockArrays.BlockedUnitRange{Array{Int64,1}},BlockArrays.BlockedUnitRange{Array{Int64,1}}}}, ::Int64, ::Vararg{Int64,N}where N) at ./abstractarray.jl:1016
[3] unsafe_convert(::Type{Ptr{Float64}}, ::SubArray{Float64,2,BlockArrays.PseudoBlockArray{Float64,2,Array{Float64,2},Tuple{BlockArrays.BlockedUnitRange{Array{Int64,1}},BlockArrays.BlockedUnitRange{Array{Int64,1}}}},Tuple{BlockArrays.BlockSlice{BlockArrays.BlockIndexRange{1,Tuple{UnitRange{Int64}}},UnitRange{Int64}},BlockArrays.BlockSlice{BlockArrays.Block{1,Int64},UnitRange{Int64}}},false}) at ./subarray.jl:405...
Not quite: PseudoBlockArray is not a subtype of DenseArray. But @mbauman's comment already mentions the strided array interface so I think we can close this.
Did the strided array interface change? I'm getting errors in Julia v1.5 from something that conformed to the interface due to
elsize
not being defined:The docs have not changed: https://docs.julialang.org/en/v1/manual/interfaces/#man-interface-strided-arrays-1
The text was updated successfully, but these errors were encountered: