Developer documentation

mmx::vctops Namespace Reference

Functions

template<typename real_t >
void scsub (const real_t &sc, real_t *data, int sz, int st=1)
 
template<typename real_t >
void scsub (const real_t &sc, real_t *data, const real_t *src, int sz, int sta=1, int stb=1)
 
template<typename real_t >
void accscmul (real_t *dst, const real_t &sc, real_t const *_src_, int sz, int stdst=1, int stsrc=1)
 
template<typename real_t >
void scmul (const real_t &sc, real_t *data, int sz, int st=1)
 
template<typename real_t >
void scdiv (const real_t &sc, real_t *data, int sz, int st=1)
 
template<typename real_t >
real_t dotprod (const real_t *a, const real_t *b, int sz, int sta=1, int stb=1)
 
template<typename real_t >
void padd (real_t *a, const real_t *b, unsigned sz, int sta=1, int stb=1)
 
template<typename real_t >
void psub (real_t *a, const real_t *b, unsigned sz, int sta=1, int stb=1)
 
template<typename real_t >
void pmul (real_t *a, const real_t *b, unsigned sz, int sta=1, int stb=1)
 
template<typename real_t >
void pdiv (real_t *a, const real_t *b, unsigned sz, int sta=1, int stb=1)
 
template<typename real0 , typename real_t >
void minmaxu (real0 &min, real0 &max, real_t *src, int sz, int st=1)
 
template<typename real0 , typename real_t >
void minmax (real0 &min, real0 &max, real_t *src, int sz, int st=1)
 
template<typename real_t >
real_t min (real_t const *src, int sz, int st=1)
 
template<typename real_t >
real_t max (real_t const *src, int sz, int st=1)
 
template<typename T >
void urand (T *data, unsigned sz, const T &a, const T &b, int st=1)
 
template<typename real_t >
real_t mean (real_t const *const data, int sz, int st)
 
template<typename real_t >
std::ostream & print (real_t const *const data, unsigned sz, int st=1, std::ostream &out=std::cout)
 
template<typename real_t >
unsigned sgncnt (real_t const *b, unsigned sz, int st=1)
 
template<typename real_t >
bool sgnchg (real_t const *const b, unsigned sz, int st=1)
 
template<typename real_t >
real_t distance2 (real_t const *const a, real_t const *const b, unsigned sz, int sta, int stb)
 
template<typename real_t >
real_t delta_max (real_t *a, real_t *b, unsigned sz, int st=1)
 
template<typename real_t >
int delta_max_index (real_t *a, real_t *b, unsigned sz, int st=1)
 
template<typename real_t >
real_t sum (real_t const *const src, unsigned sz, int st=1)
 
template<typename real_t >
unsigned set_conversion (real_t *src, unsigned sz, const real_t &epsilon=(real_t) 0)
 
template<typename real_t >
void scale (real_t *src, unsigned sz, const real_t &sc=(real_t)(1.0), int st=1)
 
template<typename U , typename Y , typename Z >
void convolution (U *dst, Y const *a, Z const *b, unsigned sza, unsigned szb, int sta=1, int stb=1, int stout=1)
 
template<typename U , typename Y , typename Z >
void self_convolution (U *dst, Y const *a, unsigned sza, int sta=1, int stout=1)
 

Function Documentation

template<typename real_t >
void mmx::vctops::accscmul ( real_t *  dst,
const real_t &  sc,
real_t const *  _src_,
int  sz,
int  stdst = 1,
int  stsrc = 1 
)
inline
template<typename U , typename Y , typename Z >
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 
)
template<typename real_t >
real_t mmx::vctops::delta_max ( real_t *  a,
real_t *  b,
unsigned  sz,
int  st = 1 
)
inline
template<typename real_t >
int mmx::vctops::delta_max_index ( real_t *  a,
real_t *  b,
unsigned  sz,
int  st = 1 
)
inline
template<typename real_t >
real_t mmx::vctops::distance2 ( real_t const *const  a,
real_t const *const  b,
unsigned  sz,
int  sta,
int  stb 
)
inline
template<typename real_t >
real_t mmx::vctops::dotprod ( const real_t *  a,
const real_t *  b,
int  sz,
int  sta = 1,
int  stb = 1 
)
inline
template<typename real_t >
real_t mmx::vctops::max ( real_t const *  src,
int  sz,
int  st = 1 
)
template<typename real_t >
real_t mmx::vctops::mean ( real_t const *const  data,
int  sz,
int  st 
)
template<typename real_t >
real_t mmx::vctops::min ( real_t const *  src,
int  sz,
int  st = 1 
)
template<typename real0 , typename real_t >
void mmx::vctops::minmax ( real0 &  min,
real0 &  max,
real_t *  src,
int  sz,
int  st = 1 
)
template<typename real0 , typename real_t >
void mmx::vctops::minmaxu ( real0 &  min,
real0 &  max,
real_t *  src,
int  sz,
int  st = 1 
)
template<typename real_t >
void mmx::vctops::padd ( real_t *  a,
const real_t *  b,
unsigned  sz,
int  sta = 1,
int  stb = 1 
)
inline
template<typename real_t >
void mmx::vctops::pdiv ( real_t *  a,
const real_t *  b,
unsigned  sz,
int  sta = 1,
int  stb = 1 
)
inline
template<typename real_t >
void mmx::vctops::pmul ( real_t *  a,
const real_t *  b,
unsigned  sz,
int  sta = 1,
int  stb = 1 
)
inline
template<typename real_t >
std::ostream& mmx::vctops::print ( real_t const *const  data,
unsigned  sz,
int  st = 1,
std::ostream &  out = std::cout 
)
template<typename real_t >
void mmx::vctops::psub ( real_t *  a,
const real_t *  b,
unsigned  sz,
int  sta = 1,
int  stb = 1 
)
inline
template<typename real_t >
void mmx::vctops::scale ( real_t *  src,
unsigned  sz,
const real_t &  sc = (real_t)(1.0),
int  st = 1 
)
inline
template<typename real_t >
void mmx::vctops::scdiv ( const real_t &  sc,
real_t *  data,
int  sz,
int  st = 1 
)
inline
template<typename real_t >
void mmx::vctops::scmul ( const real_t &  sc,
real_t *  data,
int  sz,
int  st = 1 
)
inline
template<typename real_t >
void mmx::vctops::scsub ( const real_t &  sc,
real_t *  data,
int  sz,
int  st = 1 
)
inline
template<typename real_t >
void mmx::vctops::scsub ( const real_t &  sc,
real_t *  data,
const real_t *  src,
int  sz,
int  sta = 1,
int  stb = 1 
)
inline
template<typename U , typename Y , typename Z >
void mmx::vctops::self_convolution ( U *  dst,
Y const *  a,
unsigned  sza,
int  sta = 1,
int  stout = 1 
)
template<typename real_t >
unsigned mmx::vctops::set_conversion ( real_t *  src,
unsigned  sz,
const real_t &  epsilon = (real_t)0 
)
inline
template<typename real_t >
bool mmx::vctops::sgnchg ( real_t const *const  b,
unsigned  sz,
int  st = 1 
)
inline
template<typename real_t >
unsigned mmx::vctops::sgncnt ( real_t const *  b,
unsigned  sz,
int  st = 1 
)
inline
template<typename real_t >
real_t mmx::vctops::sum ( real_t const *const  src,
unsigned  sz,
int  st = 1 
)
inline
template<typename T >
void mmx::vctops::urand ( T *  data,
unsigned  sz,
const T &  a,
const T &  b,
int  st = 1 
)
Home