Skip to content

Commit

Permalink
SparseCoefficients based on Tuples are truly immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
kalmarek committed May 30, 2024
1 parent e74ecab commit 9db5760
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/sparse_coeffs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ function MA.operate!(::typeof(canonical), res::SparseCoefficients, cmp::C) where
return res
end

function MA.operate!(
::typeof(canonical),
res::SparseCoefficients{T,I,Tuple{T},Tuple{I}},
) where {T,I}
return res
end

# arithmetic on coefficients; performance overloads

function MA.operate!(::typeof(zero), s::SparseCoefficients)
Expand Down

0 comments on commit 9db5760

Please sign in to comment.