Minor refactoring
This commit is contained in:
parent
b5928e809f
commit
e8593d51a3
|
|
@ -8,9 +8,7 @@ struct system{T}
|
||||||
L::T
|
L::T
|
||||||
μ::T
|
μ::T
|
||||||
|
|
||||||
function system{T}(d::Int, n::Int, N::Int, L::Real, μ::Real) where {T<:Float}
|
system{T}(d::Int, n::Int, N::Int, L::Real, μ::Real) where {T<:Float} = new{T}(d, n, N, convert(T, L), convert(T, μ))
|
||||||
return new{T}(d, n, N, convert(T, L), convert(T, μ))
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
norm_square(x::Array{Int})::Int = sum(x .* x)
|
norm_square(x::Array{Int})::Int = sum(x .* x)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue