MCKL
Monte Carlo Kernel Library
Functions
Trigonometric functions

Functions

template<typename T >
void mckl::acos (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \arccos(a_i)\). More...
 
template<typename T >
void mckl::acospi (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \arccos(a_i) / \pi\). More...
 
template<typename T >
void mckl::asin (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \arcsin(a_i)\). More...
 
template<typename T >
void mckl::asinpi (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \arcsin(a_i) / \pi\). More...
 
template<typename T >
void mckl::atan (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \arctan(a_i)\). More...
 
template<typename T >
void mckl::atan2 (std::size_t n, const T *a, const T *b, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \arctan(a_i / b_i)\) with signs to determine the quadrant. More...
 
template<typename T >
void mckl::atan2 (std::size_t n, const T *a, T b, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \arctan(a_i / b)\) with signs to determine the quadrant. More...
 
template<typename T >
void mckl::atan2 (std::size_t n, T a, const T *b, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \arctan(a / b_i)\) with signs to determine the quadrant. More...
 
template<typename T >
void mckl::atan2pi (std::size_t n, const T *a, const T *b, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \arctan(a_i / b_i) / \pi\) with signs to determine the quadrant. More...
 
template<typename T >
void mckl::atan2pi (std::size_t n, const T *a, T b, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \arctan(a_i / b) / \pi\) with signs to determine the quadrant. More...
 
template<typename T >
void mckl::atan2pi (std::size_t n, T a, const T *b, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \arctan(a / b_i) / \pi\) with signs to determine the quadrant. More...
 
template<typename T >
void mckl::atanpi (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \arctan(a_i) / \pi\). More...
 
template<typename T >
void mckl::cis (std::size_t n, const T *a, std::complex< T > *y)
 For \(i=1,\ldots,n\), compute \(y_i = \cos(a_i) + i\sin(a_i)\). More...
 
template<typename T >
void mckl::cos (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \sin(a_i)\). More...
 
template<typename T >
void mckl::cosd (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \cos(a_i / 180)\). More...
 
template<typename T >
void mckl::cospi (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \cos(\pi a_i)\). More...
 
template<typename T >
void mckl::sin (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \cos(a_i)\). More...
 
template<typename T >
void mckl::sincos (std::size_t n, const T *a, T *y, T *z)
 For \(i=1,\ldots,n\), compute \(y_i = \sin(a_i), z_i = \cos(a_i)\). More...
 
template<typename T >
void mckl::sind (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \sin(a_i / 180)\). More...
 
template<typename T >
void mckl::sinpi (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \sin(\pi a_i)\). More...
 
template<typename T >
void mckl::tan (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \tan(a_i)\). More...
 
template<typename T >
void mckl::tand (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \tan(a_i / 180)\). More...
 
template<typename T >
void mckl::tanpi (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \tan(\pi a_i)\). More...
 

Detailed Description

Function Documentation

◆ acos()

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

For \(i=1,\ldots,n\), compute \(y_i = \arccos(a_i)\).

Definition at line 1196 of file vmf.hpp.

◆ acospi()

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

For \(i=1,\ldots,n\), compute \(y_i = \arccos(a_i) / \pi\).

Definition at line 1218 of file vmf.hpp.

◆ asin()

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

For \(i=1,\ldots,n\), compute \(y_i = \arcsin(a_i)\).

Definition at line 1199 of file vmf.hpp.

◆ asinpi()

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

For \(i=1,\ldots,n\), compute \(y_i = \arcsin(a_i) / \pi\).

Definition at line 1233 of file vmf.hpp.

◆ atan()

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

For \(i=1,\ldots,n\), compute \(y_i = \arctan(a_i)\).

Definition at line 1202 of file vmf.hpp.

◆ atan2() [1/3]

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

For \(i=1,\ldots,n\), compute \(y_i = \arctan(a_i / b_i)\) with signs to determine the quadrant.

Definition at line 1206 of file vmf.hpp.

◆ atan2() [2/3]

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

For \(i=1,\ldots,n\), compute \(y_i = \arctan(a_i / b)\) with signs to determine the quadrant.

Definition at line 1210 of file vmf.hpp.

◆ atan2() [3/3]

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

For \(i=1,\ldots,n\), compute \(y_i = \arctan(a / b_i)\) with signs to determine the quadrant.

Definition at line 1214 of file vmf.hpp.

◆ atan2pi() [1/3]

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

For \(i=1,\ldots,n\), compute \(y_i = \arctan(a_i / b_i) / \pi\) with signs to determine the quadrant.

Definition at line 1264 of file vmf.hpp.

◆ atan2pi() [2/3]

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

For \(i=1,\ldots,n\), compute \(y_i = \arctan(a_i / b) / \pi\) with signs to determine the quadrant.

Definition at line 1280 of file vmf.hpp.

◆ atan2pi() [3/3]

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

For \(i=1,\ldots,n\), compute \(y_i = \arctan(a / b_i) / \pi\) with signs to determine the quadrant.

Definition at line 1296 of file vmf.hpp.

◆ atanpi()

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

For \(i=1,\ldots,n\), compute \(y_i = \arctan(a_i) / \pi\).

Definition at line 1248 of file vmf.hpp.

◆ cis()

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

For \(i=1,\ldots,n\), compute \(y_i = \cos(a_i) + i\sin(a_i)\).

Definition at line 1081 of file vmf.hpp.

◆ cos()

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

For \(i=1,\ldots,n\), compute \(y_i = \sin(a_i)\).

Definition at line 1045 of file vmf.hpp.

◆ cosd()

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

For \(i=1,\ldots,n\), compute \(y_i = \cos(a_i / 180)\).

Definition at line 1152 of file vmf.hpp.

◆ cospi()

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

For \(i=1,\ldots,n\), compute \(y_i = \cos(\pi a_i)\).

Definition at line 1107 of file vmf.hpp.

◆ sin()

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

For \(i=1,\ldots,n\), compute \(y_i = \cos(a_i)\).

Definition at line 1048 of file vmf.hpp.

◆ sincos()

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

For \(i=1,\ldots,n\), compute \(y_i = \sin(a_i), z_i = \cos(a_i)\).

Definition at line 1053 of file vmf.hpp.

◆ sind()

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

For \(i=1,\ldots,n\), compute \(y_i = \sin(a_i / 180)\).

Definition at line 1167 of file vmf.hpp.

◆ sinpi()

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

For \(i=1,\ldots,n\), compute \(y_i = \sin(\pi a_i)\).

Definition at line 1122 of file vmf.hpp.

◆ tan()

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

For \(i=1,\ldots,n\), compute \(y_i = \tan(a_i)\).

Definition at line 1103 of file vmf.hpp.

◆ tand()

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

For \(i=1,\ldots,n\), compute \(y_i = \tan(a_i / 180)\).

Definition at line 1182 of file vmf.hpp.

◆ tanpi()

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

For \(i=1,\ldots,n\), compute \(y_i = \tan(\pi a_i)\).

Definition at line 1137 of file vmf.hpp.