MCKL
Monte Carlo Kernel Library
Functions
Power root functions

Functions

template<typename T >
void mckl::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 mckl::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 >
mckl::div (T a, T b)
 
template<typename T >
void mckl::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 mckl::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 mckl::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 mckl::hypot (std::size_t n, const T *a, T b, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \sqrt{a_i^2 + b^2}\). More...
 
template<typename T >
void mckl::hypot (std::size_t n, T a, const T *b, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \sqrt{a^2 + b_i^2}\). More...
 
template<typename T >
void mckl::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 mckl::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 mckl::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 mckl::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 mckl::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 mckl::pow (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 mckl::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 mckl::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 mckl::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

◆ cbrt()

template<typename T >
void mckl::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 932 of file vmf.hpp.

◆ div() [1/4]

template<typename T >
void mckl::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 905 of file vmf.hpp.

◆ div() [2/4]

template<typename T >
T mckl::div ( a,
b 
)
inline

Definition at line 905 of file vmf.hpp.

◆ div() [3/4]

template<typename T >
void mckl::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 908 of file vmf.hpp.

◆ div() [4/4]

template<typename T >
void mckl::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 911 of file vmf.hpp.

◆ hypot() [1/3]

template<typename T >
void mckl::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 993 of file vmf.hpp.

◆ hypot() [2/3]

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

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

Definition at line 996 of file vmf.hpp.

◆ hypot() [3/3]

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

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

Definition at line 999 of file vmf.hpp.

◆ inv()

template<typename T >
void mckl::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 902 of file vmf.hpp.

◆ invcbrt()

template<typename T >
void mckl::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 936 of file vmf.hpp.

◆ invsqrt()

template<typename T >
void mckl::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 918 of file vmf.hpp.

◆ pow() [1/3]

template<typename T >
void mckl::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 984 of file vmf.hpp.

◆ pow() [2/3]

template<typename T >
void mckl::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 987 of file vmf.hpp.

◆ pow() [3/3]

template<typename T >
void mckl::pow ( 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 990 of file vmf.hpp.

◆ pow2o3()

template<typename T >
void mckl::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 951 of file vmf.hpp.

◆ pow3o2()

template<typename T >
void mckl::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 966 of file vmf.hpp.

◆ sqrt()

template<typename T >
void mckl::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 914 of file vmf.hpp.