vSMC  v3.0.0
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 336 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 301 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 304 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 307 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 361 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 369 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 381 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 393 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 409 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 421 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 433 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 341 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 327 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 330 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 333 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 320 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 310 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 313 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 316 of file vmath.hpp.