From 0ff1ddd98531a1e2a3d2d743f660fbc92de647d0 Mon Sep 17 00:00:00 2001 From: kalmar Date: Mon, 13 Mar 2017 11:20:24 +0100 Subject: [PATCH] resolve type instability in splaplacian --- property(T).jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/property(T).jl b/property(T).jl index 1935ddf..955bc5b 100644 --- a/property(T).jl +++ b/property(T).jl @@ -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