Class fract (o2scl)¶
-
class o2scl::fract¶
Desc.
Public Types
Public Functions
-
inline fract()¶
-
template<class func_t = nrf_funct, class mat_t = ubmatrix, class vec_t = ubvector, class vec2_t = std::vector<double>, class vec2_size_t = std::vector<size_t>, class fp_t = double>
inline int nrf(func_t &f, uniform_grid<fp_t> &gx, uniform_grid<fp_t> &gy, size_t kmax, fp_t rmax, o2scl::table3d &t3d, vec2_t &roots_x, vec2_t &roots_y, vec2_size_t &min_count, vec2_size_t &max_count)¶ Desc.
If the iteration converges to a root, then the
"root"
slice in the o2scl::table3d object is set to the index of the root (beginning with 1 not 0) and the"it"
slice in the o2scl::table3d object is set to the iteration number at which convergence was achieved. If \( x^2+y^2>r_{\mathrm{max}}^2 \) then the iteration is presumed to have diverged, then"root"
is set to -1 and"it"
is set tokmax
. If, afterkmax
iterations, the iteration has not converged, then"root"
is set to 0 and"it"
is set tokmax
.
-
template<class func_t, class vec_t = ubvector, class fp_t = double>
inline int itf(func_t &f, uniform_grid<fp_t> &gx, uniform_grid<fp_t> &gy, size_t kmax, fp_t rmax, o2scl::table3d &t3d, size_t &min, size_t &max)¶
Public Members
-
int verbose¶
-
inline fract()¶