mmx::upoldse_ Namespace Reference

Functions


Function Documentation

void mmx::upoldse_::dhorner ( real_t &  p,
real_t &  dp,
real_t const *const   mnms,
unsigned  sz,
const real_t &  t 
) [inline]

Definition at line 23 of file loops_upoldse.hpp.

Referenced by bsearch_newton2< real_t >::reach(), and bsearch_newton< real_t >::reach().

00024     { int n = sz-1; p = mnms[n], dp  = 0.0; for ( int j = n-1; j>=0; dp=dp*t+p, p=p*t+mnms[j], j-- ) ; };

void mmx::upoldse_::diff ( real_t *  dst,
real_t const *const   src,
unsigned  sz,
int  st 
) [inline]

Definition at line 14 of file loops_upoldse.hpp.

00015     { for ( unsigned i = 0; i < sz-1; dst[i*st] = (i+1)*src[(i+1)*st],  i ++ ) ; };

real_t mmx::upoldse_::horner ( real_t const *const   mnms,
unsigned  sz,
const real_t &  t,
int  st = 1 
) [inline]

Definition at line 20 of file loops_upoldse.hpp.

References horner().

00021     { real_t res; horner(res,mnms,sz,t,st); return res; };

void mmx::upoldse_::horner ( parm_t &  res,
coeff_t const *const   mnms,
unsigned  sz,
const parm_t &  t,
int  st = 1 
) [inline]

Definition at line 17 of file loops_upoldse.hpp.

Referenced by mmx::tensor::eval(), horner(), mmx::tensor::levalm(), eenv_base::meval(), eenv_base::monoms_eval(), bsearch_newton2< real_t >::reach(), bsearch_newton< real_t >::reach(), and bsearch< real_t >::reach().

00018     { res = 0.0; for ( int p = (sz-1)*st; p != 0; res +=  mnms[p], res *= t, p -= st ) ; res+=mnms[0]; };


Generated on 6 Dec 2012 for realroot by  doxygen 1.6.1