vSMC  v3.0.0
Scalable Monte Carlo
Functions

Functions

template<typename T >
void vsmc::cdfnorm (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = 1 - \mathrm{Erfc}(a_i / \sqrt{2}) / 2\), the standard Normal CDF. More...
 
template<typename T >
void vsmc::ceil (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \lceil a_i \rceil\). More...
 
template<typename T >
void vsmc::erf (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \mathrm{Erf}(a_i)\). More...
 
template<typename T >
void vsmc::erfc (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \mathrm{Erfc}(a_i) = \mathrm{Erf}(1 - a_i)\). More...
 
template<typename T >
void vsmc::floor (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \lfloor a_i \rfloor\). More...
 
template<typename T >
void vsmc::lgamma (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \ln\Gamma(a_i)\). More...
 
template<typename T >
void vsmc::modf (std::size_t n, const T *a, T *y, T *z)
 For \(i=1,\ldots,n\), compute integeral and fraction parts. More...
 
template<typename T >
void vsmc::round (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute rounding. More...
 
template<typename T >
void vsmc::tgamma (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \Gamma(a_i)\). More...
 
template<typename T >
void vsmc::trunc (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \mathrm{sgn}(a_i)\lfloor|a_i|\rfoor\). More...
 

Detailed Description

Function Documentation

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

For \(i=1,\ldots,n\), compute \(y_i = 1 - \mathrm{Erfc}(a_i / \sqrt{2}) / 2\), the standard Normal CDF.

Definition at line 669 of file vmath.hpp.

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

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

Definition at line 694 of file vmath.hpp.

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

For \(i=1,\ldots,n\), compute \(y_i = \mathrm{Erf}(a_i)\).

Definition at line 660 of file vmath.hpp.

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

For \(i=1,\ldots,n\), compute \(y_i = \mathrm{Erfc}(a_i) = \mathrm{Erf}(1 - a_i)\).

Definition at line 664 of file vmath.hpp.

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

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

Definition at line 691 of file vmath.hpp.

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

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

Definition at line 685 of file vmath.hpp.

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

For \(i=1,\ldots,n\), compute integeral and fraction parts.

Definition at line 705 of file vmath.hpp.

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

For \(i=1,\ldots,n\), compute rounding.

Definition at line 701 of file vmath.hpp.

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

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

Definition at line 688 of file vmath.hpp.

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

For \(i=1,\ldots,n\), compute \(y_i = \mathrm{sgn}(a_i)\lfloor|a_i|\rfoor\).

Definition at line 698 of file vmath.hpp.