vSMC
vSMC: Scalable Monte Carlo
Functions
Power and root functions

Functions

template<typename T >
void vsmc::cbrt (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \sqrt[3]{a_i}\). More...
 
template<typename T >
void vsmc::div (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::div (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::div (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::hypot (std::size_t n, const T *a, const T *b, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \sqrt{a_i^2 + b_i^2}\). More...
 
template<typename T >
void vsmc::inv (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = a_i^{-1}\). More...
 
template<typename T >
void vsmc::invcbrt (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = 1 / \sqrt[3]{a_i}\). More...
 
template<typename T >
void vsmc::invsqrt (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = 1 / \sqrt{a_i}\). More...
 
template<typename T >
void vsmc::pow (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::pow (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::pow2o3 (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = a_i^{2/3}\). More...
 
template<typename T >
void vsmc::pow3o2 (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = a_i^{3/2}\). More...
 
template<typename T >
void vsmc::sqrt (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \sqrt{a_i}\). More...
 

Detailed Description

Function Documentation

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

For \(i=1,\ldots,n\), compute \(y_i = \sqrt[3]{a_i}\).

Definition at line 359 of file vmath.hpp.

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

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

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

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

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

Definition at line 420 of file vmath.hpp.

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

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

Definition at line 324 of file vmath.hpp.

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

For \(i=1,\ldots,n\), compute \(y_i = 1 / \sqrt[3]{a_i}\).

Definition at line 363 of file vmath.hpp.

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

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

Definition at line 345 of file vmath.hpp.

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

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

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

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

Definition at line 378 of file vmath.hpp.

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

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

Definition at line 393 of file vmath.hpp.

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

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

Definition at line 341 of file vmath.hpp.