We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 020a406 + 80db5be commit 51151dcCopy full SHA for 51151dc
src/sciml.jl
@@ -135,7 +135,7 @@ for op in (
135
end
136
137
""" Diagonal Operator """
138
-DiagonalOperator(u::AbstractVector) = MatrixOperator(Diagonal(u))
+DiagonalOperator(u::AbstractArray) = MatrixOperator(Diagonal(_vec(u)))
139
LinearAlgebra.Diagonal(L::MatrixOperator) = MatrixOperator(Diagonal(L.A))
140
141
"""
0 commit comments