vSMC
vSMC: Scalable Monte Carlo
Functions
Exponential and logarithm functions

Functions

template<typename T >
void vsmc::exp (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = e^{a_i}\). More...
 
template<typename T >
void vsmc::exp10 (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = 10^{a_i}\). More...
 
template<typename T >
void vsmc::exp2 (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = 2^{a_i}\). More...
 
template<typename T >
void vsmc::expm1 (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = e^{a_i} - 1\). More...
 
template<typename T >
void vsmc::log (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \log(a_i)\). More...
 
template<typename T >
void vsmc::log10 (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \log_{10}(a_i)\). More...
 
template<typename T >
void vsmc::log1p (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \log(a_i + 1)\). More...
 
template<typename T >
void vsmc::log2 (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \log_2(a_i)\). More...
 

Detailed Description

Function Documentation

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

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

Definition at line 429 of file vmath.hpp.

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

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

Definition at line 436 of file vmath.hpp.

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

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

Definition at line 432 of file vmath.hpp.

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

For \(i=1,\ldots,n\), compute \(y_i = e^{a_i} - 1\).

Definition at line 450 of file vmath.hpp.

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

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

Definition at line 453 of file vmath.hpp.

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

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

Definition at line 459 of file vmath.hpp.

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

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

Definition at line 462 of file vmath.hpp.

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

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

Definition at line 456 of file vmath.hpp.