1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-12-26 18:40:29 +01:00

resolve type instability in splaplacian

This commit is contained in:
kalmar 2017-03-13 11:20:24 +01:00
parent fd1eb40e29
commit 0ff1ddd985

View File

@ -34,10 +34,10 @@ end
function splaplacian_coeff(S, basis, n=length(basis)) function splaplacian_coeff(S, basis, n=length(basis))
result = spzeros(n) result = spzeros(n)
result[1] = length(S) result[1] = float(length(S))
for s in S for s in S
ind = findfirst(basis, s) ind = findfirst(basis, s)
result[ind] += -1 result[ind] += -1.0
end end
return result return result
end end