vSMC
vSMC: Scalable Monte Carlo
Functions
Arithmetic functions

Functions

template<typename T >
void vsmc::math::vAbs (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = |a_i|\). More...
 
template<typename T >
void vsmc::math::vAdd (std::size_t n, const T *a, const T *b, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = a_i + b_i\). More...
 
template<typename T >
void vsmc::math::vLinearFrac (std::size_t n, const T *a, const T *b, T beta_a, T beta_b, T mu_a, T mu_b, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = (\beta_a a_i + \mu_a) / (\beta_b b_i + \mu_b)\). More...
 
template<typename T >
void vsmc::math::vMul (std::size_t n, const T *a, const T *b, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = a_i b_i\). More...
 
template<typename T >
void vsmc::math::vSqr (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = a_i^2\). More...
 
template<typename T >
void vsmc::math::vSub (std::size_t n, const T *a, const T *b, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = a_i - b_i\). More...
 

Detailed Description

Function Documentation

template<typename T >
void vsmc::math::vAbs ( std::size_t  n,
const T *  a,
T *  y 
)
inline

For \(i=1,\ldots,n\), compute \(y_i = |a_i|\).

Definition at line 331 of file vmath.hpp.

template<typename T >
void vsmc::math::vAdd ( std::size_t  n,
const T *  a,
const T *  b,
T *  y 
)
inline

For \(i=1,\ldots,n\), compute \(y_i = a_i + b_i\).

Definition at line 319 of file vmath.hpp.

template<typename T >
void vsmc::math::vLinearFrac ( std::size_t  n,
const T *  a,
const T *  b,
beta_a,
beta_b,
mu_a,
mu_b,
T *  y 
)
inline

For \(i=1,\ldots,n\), compute \(y_i = (\beta_a a_i + \mu_a) / (\beta_b b_i + \mu_b)\).

Definition at line 336 of file vmath.hpp.

template<typename T >
void vsmc::math::vMul ( std::size_t  n,
const T *  a,
const T *  b,
T *  y 
)
inline

For \(i=1,\ldots,n\), compute \(y_i = a_i b_i\).

Definition at line 328 of file vmath.hpp.

template<typename T >
void vsmc::math::vSqr ( std::size_t  n,
const T *  a,
T *  y 
)
inline

For \(i=1,\ldots,n\), compute \(y_i = a_i^2\).

Definition at line 325 of file vmath.hpp.

template<typename T >
void vsmc::math::vSub ( std::size_t  n,
const T *  a,
const T *  b,
T *  y 
)
inline

For \(i=1,\ldots,n\), compute \(y_i = a_i - b_i\).

Definition at line 322 of file vmath.hpp.