vSMC  v3.0.0
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 550 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 557 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 553 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 571 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 574 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 580 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 583 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 577 of file vmath.hpp.