Skip to content

Commit

Permalink
Remove specialized methods
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Jun 14, 2024
1 parent 8b26f89 commit 3752bde
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions src/mtables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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

0 comments on commit 3752bde

Please sign in to comment.