Class ode_iv_table (o2scl)

O2scl : Class List

template<class func_t = ode_funct<>, class vec_t = ubvector, class alloc_vec_t = ubvector, class alloc_t = ubvector_alloc>
class ode_iv_table : public o2scl::ode_iv_solve<ode_funct<>, ubvector, ubvector, ubvector_alloc>

Solve an initial-value ODE problem and store the result in a table object.

This class is experimental.

Idea for Future:

It would be nice not to have to copy the results from a matrix into a table, but this may require a nontrivial modification of the ODE solvers and/or the table class.

Idea for Future:

One possible idea is to redo the name specification as a separate function, which allows one to either specify prefixes or full column names. We also need to figure out how to handle column units.

Public Functions

inline int solve_grid_table(size_t n, vec_t &ystart, table<> &t, std::string x_col, std::string y_prefix, std::string dydx_prefix, std::string yerr_prefix, func_t &derivs)

Desc.

inline int solve_store_table(double x0, double x1, double h, size_t n, vec_t &ystart, size_t &n_sol, table<> &t, std::string x_col, std::string y_prefix, std::string dydx_prefix, std::string yerr_prefix, func_t &derivs)

Desc.