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