1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-12-25 18:25:30 +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))
result = spzeros(n)
result[1] = length(S)
result[1] = float(length(S))
for s in S
ind = findfirst(basis, s)
result[ind] += -1
result[ind] += -1.0
end
return result
end