From 3752bde95c378f7da90f486f0c2b482721130b8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Fri, 14 Jun 2024 11:54:13 +0200 Subject: [PATCH] Remove specialized methods --- src/mtables.jl | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/src/mtables.jl b/src/mtables.jl index 20b5bee..f106b77 100644 --- a/src/mtables.jl +++ b/src/mtables.jl @@ -95,23 +95,6 @@ end _key(_, k) = k _key(mstr::MTable, k) = mstr[k] -function MA.operate!( - ms::UnsafeAddMul{<:MTable}, - res::AbstractCoefficients, - v::AbstractCoefficients, - w::AbstractCoefficients, -) - for (kv, a) in nonzero_pairs(v) - for (kw, b) in nonzero_pairs(w) - c = ms.structure(kv, kw) - for (k, v) in nonzero_pairs(c) - res[ms.structure[k]] += v * a * b - end - end - end - return res -end - function MA.operate!( ms::UnsafeAddMul{<:MTable}, res::AbstractSparseVector, @@ -138,20 +121,3 @@ function MA.operate!( res .+= sparsevec(idcs, vals, length(res)) return res end - -function MA.operate!( - ms::UnsafeAddMul{<:MTable}, - res::AbstractVector, - v::AbstractVector, - w::AbstractVector, -) - for (kv, a) in nonzero_pairs(v) - for (kw, b) in nonzero_pairs(w) - c = ms.structure(kv, kw) - for (k, v) in nonzero_pairs(c) - res[ms.structure[k]] += v * a * b - end - end - end - return res -end