vSMC
vSMC: Scalable Monte Carlo
Functions
Trigonometric functions

Functions

template<typename T >
void vsmc::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 vsmc::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 vsmc::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 vsmc::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 vsmc::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 vsmc::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 vsmc::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 vsmc::tan (std::size_t n, const T *a, T *y)
 For \(i=1,\ldots,n\), compute \(y_i = \tan(a_i)\). More...
 

Detailed Description

Function Documentation

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

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

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

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

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

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

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

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