Skip to content

Commit

Permalink
add exception for Kronecker.KroneckerProduct type
Browse files Browse the repository at this point in the history
  • Loading branch information
jlchan committed Jul 25, 2024
1 parent 32220bb commit f2909f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/solvers/dgmulti/dg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# out <- A*x
mul_by!(A) = @inline (out, x) -> matmul!(out, A, x)
mul_by!(A::T) where {T <: SimpleKronecker} = @inline (out, x) -> mul!(out, A, x)
mul_by!(A::T) where {T <: Union{<:Kronecker.KroneckerProduct, SimpleKronecker}} = @inline (out, x) -> mul!(out, A, x)
mul_by!(A::AbstractSparseMatrix) = @inline (out, x) -> mul!(out, A, x)
function mul_by!(A::LinearAlgebra.AdjOrTrans{T, S}) where {T, S <: AbstractSparseMatrix}
@inline (out, x) -> mul!(out, A, x)
Expand Down

0 comments on commit f2909f9

Please sign in to comment.