We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
similar appears to lack three-argument methods for annotated sparse matrices:
similar
julia> VERSION v"0.6.0-dev.987" julia> typeof(similar(Symmetric(speye(4)), Float64, (4,4))) Array{Float64,2} julia> @which(similar(Symmetric(speye(4)), Float64, (4,4))) similar{T,N}(a::AbstractArray, ::Type{T}, dims::Tuple{Vararg{Int64,N}}) at abstractarray.jl:422 julia> # abstractarray.jl:422 returns an Array julia> typeof(similar(Hermitian(speye(4)), Float64, (4,4))) Array{Float64,2} julia> @which(similar(Hermitian(speye(4)), Float64, (4,4))) similar{T,N}(a::AbstractArray, ::Type{T}, dims::Tuple{Vararg{Int64,N}}) at abstractarray.jl:422 julia> typeof(similar(LowerTriangular(speye(4)), Float64, (4,4))) Array{Float64,2} julia> @which(similar(LowerTriangular(speye(4)), Float64, (4,4))) similar{T,N}(a::AbstractArray, ::Type{T}, dims::Tuple{Vararg{Int64,N}}) at abstractarray.jl:422
Best!
The text was updated successfully, but these errors were encountered:
Should probably call similar on the underlying array.
Sorry, something went wrong.
Fixed by #24163 and #24162
Hah, I'd forgotten filing this issue! Thanks for closing this @fredrikekre! :)
@fredrikekre
No branches or pull requests
similar
appears to lack three-argument methods for annotated sparse matrices:Best!
The text was updated successfully, but these errors were encountered: