Minor refactoring

This commit is contained in:
ysyapa 2023-05-11 17:36:09 -04:00
parent b5928e809f
commit e8593d51a3
1 changed files with 1 additions and 3 deletions

View File

@ -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)