mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-10-19 01:00:36 +02:00
splaplacian_coeff -> splaplacian returns GroupRingElem
This commit is contained in:
parent
b35ee6bfdb
commit
8b0033da58
@ -38,12 +38,11 @@ end
|
|||||||
|
|
||||||
constraints_from_pm(pm) = constraints_from_pm(pm, maximum(pm))
|
constraints_from_pm(pm) = constraints_from_pm(pm, maximum(pm))
|
||||||
|
|
||||||
function splaplacian_coeff(S, basis, n=length(basis))
|
function splaplacian(RG::GroupRing, S, basis, n=length(basis))
|
||||||
result = spzeros(n)
|
result = RG(spzeros(n))
|
||||||
result[1] = float(length(S))
|
result[RG.group()] = float(length(S))
|
||||||
for s in S
|
for s in S
|
||||||
ind = findfirst(basis, s)
|
result[s] += -1.0
|
||||||
result[ind] += -1.0
|
|
||||||
end
|
end
|
||||||
return result
|
return result
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user