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.
1 parent 020a406 commit 80db5beCopy full SHA for 80db5be
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