From 9db5760bbc4b56256f2aa6be203737154371e5f4 Mon Sep 17 00:00:00 2001 From: Marek Kaluba Date: Thu, 30 May 2024 16:13:00 +0200 Subject: [PATCH] SparseCoefficients based on Tuples are truly immutable --- src/sparse_coeffs.jl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/sparse_coeffs.jl b/src/sparse_coeffs.jl index 5f07251..2f6a39a 100644 --- a/src/sparse_coeffs.jl +++ b/src/sparse_coeffs.jl @@ -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)