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
julia>convert(Matrix, I(2.0, 4))
4×4 Array{Float64,2}:2.00.00.00.00.02.00.00.00.00.02.00.00.00.00.02.0
julia>using LinearAlgebra
julia>convert(Diagonal, I(2.0, 4))
ERROR: MethodError: Cannot `convert` an object of type IdentityMultiple{Float64} to an object of type Diagonal
Closest candidates are:convert(::Type{#s617}where#s617<:Diagonal, ::Union{LinearAlgebra.AbstractTriangular, Bidiagonal, Diagonal, SymTridiagonal, Tridiagonal}) at /buildworker/wor
ker/package_linux64/build/usr/share/julia/stdlib/v1.2/LinearAlgebra/src/special.jl:69convert(::Type{T<:AbstractArray}, ::T<:AbstractArray) where T<:AbstractArray at abstractarray.jl:14convert(::Type{T<:AbstractArray}, ::Factorization) where T<:AbstractArray at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/LinearAlgeb
ra/src/factorization.jl:46...
Stacktrace:
[1] top-level scope at REPL[7]:1
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: