mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-11-14 14:15:28 +01:00
resolve type instability in splaplacian
This commit is contained in:
parent
fd1eb40e29
commit
0ff1ddd985
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user