18 #ifndef LINEAR_ODE_SOLVER_H_ 19 #define LINEAR_ODE_SOLVER_H_ 21 #include <boost/exception/detail/error_info_impl.hpp> 22 #include <boost/exception/info.hpp> 69 #endif // LINEAR_ODE_SOLVER_H_
Class for linear ODE solver.
void set_step(double step)
Sets the step of the numerical method.
arma::mat system_matrix_
the square matrix of ODE system
bool system_matrix_changed_
Indicates that the system_matrix_ was recently updated.
Global macros to enhance readability and debugging, general constants.
ArmaMat< double, N, M > mat
arma::mat solution_matrix_
the square solution matrix (exponential of system matrix)
arma::vec rhs_
the column vector of RHS values (not used currently)
void set_system_matrix(const arma::mat &matrix)
Sets the matrix of ODE system.
void update_solution(arma::vec &init_vec, arma::vec &output_vec)
Updates solution of the ODEs system.
double step_
the step of the numerical method
virtual bool evaluate_time_constraint(FMT_UNUSED double &time_constraint)
Estimate upper bound for time step. Return true if constraint was set.
bool step_changed_
flag is true if the step has been changed