void mmx::vctops::accscmul | ( | real_t * | dst, | |
const real_t & | sc, | |||
real_t const * | _src_, | |||
int | sz, | |||
int | stdst = 1 , |
|||
int | stsrc = 1 | |||
) | [inline] |
Definition at line 27 of file loops_vctops.hpp.
void mmx::vctops::convolution | ( | U * | dst, | |
Y const * | a, | |||
Z const * | b, | |||
unsigned | sza, | |||
unsigned | szb, | |||
int | sta = 1 , |
|||
int | stb = 1 , |
|||
int | stout = 1 | |||
) | [inline] |
Definition at line 211 of file loops_vctops.hpp.
References assert.
Referenced by bzenv< X >::scaled_elevate().
00212 { 00213 assert((dst!=a)&&(dst!=b)); 00214 int p,ia,ib,q; 00215 for ( p = 0; p != (sza+szb-1)*stout; dst[p] = (U)0, p += stout ) ; 00216 for ( p = ia =0; ia != sza*sta; ia += sta, p += stout ) 00217 for ( ib = 0, q = p; ib != szb*stb; dst[q] += a[ia]*b[ib], ib += stb, q += stout ) ; 00218 };
real_t mmx::vctops::delta_max | ( | real_t * | a, | |
real_t * | b, | |||
unsigned | sz, | |||
int | st = 1 | |||
) | [inline] |
Definition at line 172 of file loops_vctops.hpp.
int mmx::vctops::delta_max_index | ( | real_t * | a, | |
real_t * | b, | |||
unsigned | sz, | |||
int | st = 1 | |||
) | [inline] |
Definition at line 182 of file loops_vctops.hpp.
real_t mmx::vctops::distance2 | ( | real_t const *const | a, | |
real_t const *const | b, | |||
unsigned | sz, | |||
int | sta, | |||
int | stb | |||
) | [inline] |
Definition at line 163 of file loops_vctops.hpp.
real_t mmx::vctops::dotprod | ( | const real_t * | a, | |
const real_t * | b, | |||
int | sz, | |||
int | sta = 1 , |
|||
int | stb = 1 | |||
) | [inline] |
Definition at line 44 of file loops_vctops.hpp.
real_t mmx::vctops::max | ( | real_t const * | src, | |
int | sz, | |||
int | st = 1 | |||
) | [inline] |
Definition at line 103 of file loops_vctops.hpp.
Referenced by abs_max_coeff(), mmx::add(), mmx::sparse::degree(), mmx::div(), eenv_base::flatness(), mmx::hull(), mmx::intersect(), mmx::sparse::lvar(), max_coeff(), mmx::univariate::mul(), mmx::mul(), monomial_seq< C, O, MONOM, rep >::nbvar(), op_mul(), method< system, _strgy_, _rdslv_, _sbdrl_ >::reduction(), cell_mv_bernstein< C >::size(), solver< C, ProjRd< MTH > >::solve_monomial(), and Cauchy< C >::upper_bound().
real_t mmx::vctops::mean | ( | real_t const *const | data, | |
int | sz, | |||
int | st | |||
) | [inline] |
Definition at line 122 of file loops_vctops.hpp.
real_t mmx::vctops::min | ( | real_t const * | src, | |
int | sz, | |||
int | st = 1 | |||
) | [inline] |
Definition at line 95 of file loops_vctops.hpp.
Referenced by abs_max_coeff(), mmx::hull(), mmx::intersect(), and min_coeff().
void mmx::vctops::minmax | ( | real0 & | min, | |
real0 & | max, | |||
real_t * | src, | |||
int | sz, | |||
int | st = 1 | |||
) | [inline] |
void mmx::vctops::minmaxu | ( | real0 & | min, | |
real0 & | max, | |||
real_t * | src, | |||
int | sz, | |||
int | st = 1 | |||
) | [inline] |
Definition at line 68 of file loops_vctops.hpp.
Referenced by minmax().
00069 { 00070 int i,p; 00071 for ( p = 0, i = 0; i < sz/2; i ++, p += 2*st ) 00072 { 00073 if ( src[p] < src[p+st] ) 00074 { 00075 if ( src[p] < min ) min = src[p]; 00076 if ( src[p+st] > max ) max = src[p+st]; 00077 } 00078 else 00079 { 00080 if ( src[p] > max ) max = src[p]; 00081 if ( src[p+st] < min ) min = src[p+st]; 00082 }; 00083 }; 00084 };
void mmx::vctops::padd | ( | real_t * | a, | |
const real_t * | b, | |||
unsigned | sz, | |||
int | sta = 1 , |
|||
int | stb = 1 | |||
) | [inline] |
Definition at line 52 of file loops_vctops.hpp.
Referenced by mmx::tensor::add().
void mmx::vctops::pdiv | ( | real_t * | a, | |
const real_t * | b, | |||
unsigned | sz, | |||
int | sta = 1 , |
|||
int | stb = 1 | |||
) | [inline] |
Definition at line 64 of file loops_vctops.hpp.
void mmx::vctops::pmul | ( | real_t * | a, | |
const real_t * | b, | |||
unsigned | sz, | |||
int | sta = 1 , |
|||
int | stb = 1 | |||
) | [inline] |
Definition at line 60 of file loops_vctops.hpp.
Referenced by mmx::tensor::convertb2m(), and mmx::tensor::scale().
std::ostream& mmx::vctops::print | ( | real_t const *const | data, | |
unsigned | sz, | |||
int | st = 1 , |
|||
std::ostream & | out = std::cout | |||
) | [inline] |
Definition at line 126 of file loops_vctops.hpp.
void mmx::vctops::psub | ( | real_t * | a, | |
const real_t * | b, | |||
unsigned | sz, | |||
int | sta = 1 , |
|||
int | stb = 1 | |||
) | [inline] |
Definition at line 56 of file loops_vctops.hpp.
Referenced by mmx::tensor::sub().
void mmx::vctops::scale | ( | real_t * | src, | |
unsigned | sz, | |||
const real_t & | sc = (real_t)(1.0) , |
|||
int | st = 1 | |||
) | [inline] |
void mmx::vctops::scdiv | ( | const real_t & | sc, | |
real_t * | data, | |||
int | sz, | |||
int | st = 1 | |||
) | [inline] |
Definition at line 39 of file loops_vctops.hpp.
Referenced by mmx::tensor::div().
void mmx::vctops::scmul | ( | const real_t & | sc, | |
real_t * | data, | |||
int | sz, | |||
int | st = 1 | |||
) | [inline] |
Definition at line 35 of file loops_vctops.hpp.
Referenced by mmx::tensor::mul(), and scale().
void mmx::vctops::scsub | ( | const real_t & | sc, | |
real_t * | data, | |||
const real_t * | src, | |||
int | sz, | |||
int | sta = 1 , |
|||
int | stb = 1 | |||
) | [inline] |
Definition at line 23 of file loops_vctops.hpp.
void mmx::vctops::scsub | ( | const real_t & | sc, | |
real_t * | data, | |||
int | sz, | |||
int | st = 1 | |||
) | [inline] |
Definition at line 19 of file loops_vctops.hpp.
Referenced by mmx::tensor::sub().
void mmx::vctops::self_convolution | ( | U * | dst, | |
Y const * | a, | |||
unsigned | sza, | |||
int | sta = 1 , |
|||
int | stout = 1 | |||
) | [inline] |
Definition at line 221 of file loops_vctops.hpp.
unsigned mmx::vctops::set_conversion | ( | real_t * | src, | |
unsigned | sz, | |||
const real_t & | epsilon = (real_t)0 | |||
) | [inline] |
Definition at line 197 of file loops_vctops.hpp.
Referenced by op_mul().
bool mmx::vctops::sgnchg | ( | real_t const *const | b, | |
unsigned | sz, | |||
int | st = 1 | |||
) | [inline] |
Definition at line 150 of file loops_vctops.hpp.
References mmx::abs().
Referenced by parallel< system >::process().
00151 { 00152 int p = st; 00153 if ( std::abs(b[0]) < numerics::epsilon<real_t>::result || 00154 std::abs(b[(sz-1)*st]) < numerics::epsilon<real_t>::result ) return true; 00155 bool pprv = b[0]>0;//numerics::epsilon<real_t>::result; 00156 // bool pcurr; 00157 for ( unsigned i = 1; i < sz; i++, p+= st ) 00158 if ( (b[p]>0) != pprv ) return true; 00159 return false; 00160 };
unsigned mmx::vctops::sgncnt | ( | real_t const * | b, | |
unsigned | sz, | |||
int | st = 1 | |||
) | [inline] |
Definition at line 140 of file loops_vctops.hpp.
Referenced by descartes_solver< real_t, local_method >::solve().
real_t mmx::vctops::sum | ( | real_t const *const | src, | |
unsigned | sz, | |||
int | st = 1 | |||
) | [inline] |
Definition at line 193 of file loops_vctops.hpp.
Referenced by mmx::linear::doolittle(), mmx::linear::Lsolve(), NISP< C >::upper_bound(), and mmx::linear::Usolve().
void mmx::vctops::urand | ( | T * | data, | |
unsigned | sz, | |||
const T & | a, | |||
const T & | b, | |||
int | st = 1 | |||
) | [inline] |
Definition at line 112 of file loops_vctops.hpp.