vSMC
vSMC: Scalable Monte Carlo
Functions
Arithmetic functions

Functions

template<typename T >
void vsmc::abs (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::add (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::add (std::size_t n, const T *a, T b, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = a_i + b\). More...
 
template<typename T >
void vsmc::add (std::size_t n, T a, const T *b, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = a + b_i\). More...
 
template<typename T >
void vsmc::fma (std::size_t n, const T *a, const T *b, const T *c, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = a_i * b_i + c_i\). More...
 
template<typename T >
void vsmc::fma (std::size_t n, const T *a, const T *b, T c, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = a_i * b_i + c\). More...
 
template<typename T >
void vsmc::fma (std::size_t n, const T *a, T b, const T *c, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = a_i * b + c_i\). More...
 
template<typename T >
void vsmc::fma (std::size_t n, const T *a, T b, T c, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = a_i * b + c\). More...
 
template<typename T >
void vsmc::fma (std::size_t n, T a, const T *b, const T *c, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = a * b_i + c_i\). More...
 
template<typename T >
void vsmc::fma (std::size_t n, T a, const T *b, T c, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = a * b_i + c\). More...
 
template<typename T >
void vsmc::fma (std::size_t n, T a, T b, const T *c, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = a * b + c_i\). More...
 
template<typename T >
void vsmc::linear_frac (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::mul (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::mul (std::size_t n, const T *a, T b, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = a_i b\). More...
 
template<typename T >
void vsmc::mul (std::size_t n, T a, const T *b, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = a b_i\). More...
 
template<typename T >
void vsmc::sqr (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::sub (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::sub (std::size_t n, const T *a, T b, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = a_i - b\). More...
 
template<typename T >
void vsmc::sub (std::size_t n, T a, const T *b, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = a - b_i\). More...
 

Detailed Description

Function Documentation

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

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

Definition at line 231 of file vmath.hpp.

template<typename T >
void vsmc::add ( 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 196 of file vmath.hpp.

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

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

Definition at line 199 of file vmath.hpp.

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

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

Definition at line 202 of file vmath.hpp.

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

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

Definition at line 257 of file vmath.hpp.

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

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

Definition at line 266 of file vmath.hpp.

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

For \(i=1,\ldots,n\), compute \(y_i = a_i * b + c_i\).

Definition at line 275 of file vmath.hpp.

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

For \(i=1,\ldots,n\), compute \(y_i = a_i * b + c\).

Definition at line 284 of file vmath.hpp.

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

For \(i=1,\ldots,n\), compute \(y_i = a * b_i + c_i\).

Definition at line 293 of file vmath.hpp.

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

For \(i=1,\ldots,n\), compute \(y_i = a * b_i + c\).

Definition at line 302 of file vmath.hpp.

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

For \(i=1,\ldots,n\), compute \(y_i = a * b + c_i\).

Definition at line 311 of file vmath.hpp.

template<typename T >
void vsmc::linear_frac ( 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 236 of file vmath.hpp.

template<typename T >
void vsmc::mul ( 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 222 of file vmath.hpp.

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

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

Definition at line 225 of file vmath.hpp.

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

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

Definition at line 228 of file vmath.hpp.

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

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

Definition at line 215 of file vmath.hpp.

template<typename T >
void vsmc::sub ( 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 205 of file vmath.hpp.

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

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

Definition at line 208 of file vmath.hpp.

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

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

Definition at line 211 of file vmath.hpp.