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

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

View File

@ -22,7 +22,7 @@ function spLaplacian(RG::GroupRing, S, T::Type=Float64)
return result
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[one(RG.group)] = T(length(S))
for s in S