CrySpace::Solver
Instance methods
euler(f : Proc(Float64Tensor, Float64, Float64Tensor), x0 : Float64Tensor, t_span : Tuple(Float64, Float64), dt : Float64)
Solves an ODE of the form dx/dt = f(x, t) using the Forward Euler method.
Vectorized Euler: optimized to pre-allocate result matrix and avoid copies
rk4(f : Proc(Float64Tensor, Float64, Float64Tensor), x0 : Float64Tensor, t_span : Tuple(Float64, Float64), dt : Float64)
Solves an ODE of the form dx/dt = f(x, t) using the 4th Order Runge-Kutta method.
Vectorized RK4: optimized to pre-allocate result matrix and avoid copies