Skip to content

Commit a292ecf

Browse files
committed
fix oversights
1 parent 90a4a3c commit a292ecf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/operators/basic_operators.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,9 @@ Base.convert(::Type{AbstractMatrix}, L::FactorizedDiffEqArrayOperator{<:Any,<:Un
156156

157157
Base.Matrix(L::FactorizedDiffEqArrayOperator{<:Any,<:Union{Factorization,AbstractMatrix}}) =
158158
Matrix(L.F)
159-
Base.Matrix(L::FactorizedDiffEqArrayOperator{<:Any,<:AdjointFact}) = Matrix(L.F')'
160-
Base.Matrix(L::FactorizedDiffEqArrayOperator{<:Any,<:TransposeFact}) =
159+
Base.Matrix(L::FactorizedDiffEqArrayOperator{<:Any,<:Union{Adjoint,AdjointFact}}) =
160+
adjoint(Matrix(adjoint(L.F)))
161+
Base.Matrix(L::FactorizedDiffEqArrayOperator{<:Any,<:Union{Transpose,TransposeFact}}) =
161162
transpose(Matrix(transpose(L.F)))
162163

163164
Base.adjoint(L::FactorizedDiffEqArrayOperator) = FactorizedDiffEqArrayOperator(L.F')

0 commit comments

Comments
 (0)