Files
thesis/julia/result.jl

17 lines
432 B
Julia

struct Result
converged::Bool
ΔVs::Matrix{Float64}
start::Vector{Float64}
final::Vector{Float64}
end
function Result(name::String)
if name == "test_converged"
return Result(true, Matrix(undef,0,0), Vector{Float64}(), Vector{Float64}())
elseif name == "test_unconverged"
return Result(false, Matrix(undef,0,0), Vector{Float64}(), Vector{Float64}())
else
throw(ErrorException("Bad result name"))
end
end