Class ode_bv_shoot_grid (o2scl)

O2scl : Class List

template<class mat_t = boost::numeric::ublas::matrix<double>, class mat_row_t = boost::numeric::ublas::matrix_row<boost::numeric::ublas::matrix<double>>, class func_t = ode_funct<>, class vec_t = boost::numeric::ublas::vector<double>, class vec_int_t = boost::numeric::ublas::vector<int>>
class ode_bv_shoot_grid : public o2scl::ode_bv_shoot<ode_funct<>, boost::numeric::ublas::vector<double>, boost::numeric::ublas::vector<int>>

Solve boundary-value ODE problems by shooting from one boundary to the other on a grid.

This class is experimental.

Default template arguments

  • func_t - ode_funct

  • vec_t - boost::numeric::ublas::vector < double >

  • vec_int_t - boost::numeric::ublas::vector < int >

Public Types

typedef boost::numeric::ublas::vector<double> ubvector
typedef boost::numeric::ublas::vector<int> ubvector_int
typedef boost::numeric::ublas::matrix<double> ubmatrix

Public Functions

inline ode_bv_shoot_grid()
inline virtual ~ode_bv_shoot_grid()
inline int solve_grid(double x0, double x1, double h, size_t n, vec_t &ystart, vec_t &yend, vec_int_t &index, size_t nsol, vec_t &xsol, mat_t &ysol, mat_t &err_sol, mat_t &dydx_sol, func_t &derivs)

Desc.

Protected Functions

inline int solve_grid_fun(size_t nv, const vec_t &tx, vec_t &ty)

The shooting function to be solved by the multidimensional solver

Protected Attributes

size_t l_nsol

Desc.

vec_t *l_xsol

Desc.

mat_t *l_ysol

Desc.

mat_t *l_dydxsol

Desc.

mat_t *l_errsol

Desc.