vSMC
vSMC: Scalable Monte Carlo
Functions
Power and root functions

Functions

template<typename T >
void vsmc::math::vCbrt (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::math::vDiv (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::math::vHypot (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::math::vInv (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::math::vInvCbrt (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::math::vInvSqrt (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::math::vPow (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::math::vPow2o3 (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::math::vPow3o2 (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::math::vPowx (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::math::vSqrt (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::math::vCbrt ( 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 364 of file vmath.hpp.

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

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

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

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

Definition at line 352 of file vmath.hpp.

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

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

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

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

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

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

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

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

Definition at line 358 of file vmath.hpp.