use where instead of f{T}(args)

This commit is contained in:
kalmarek 2018-08-15 19:20:55 +02:00
parent e6ad20cb23
commit 28fe0820bc
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ function spLaplacian(RG::GroupRing, S, T::Type=Float64)
return result return result
end end
function spLaplacian{TT<:Ring}(RG::GroupRing{TT}, S, T::Type=Float64) function spLaplacian(RG::GroupRing{R}, S, T::Type=Float64) where {R<:Ring}
result = RG(T) result = RG(T)
result[one(RG.group)] = T(length(S)) result[one(RG.group)] = T(length(S))
for s in S for s in S