vSMC  v3.0.0
Scalable Monte Carlo
Functions
Power 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 480 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 453 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 456 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 459 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 541 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 446 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 484 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 466 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 530 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 534 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 499 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 514 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 462 of file vmath.hpp.