T-SIMD v31.1.0
A C++ template SIMD library
|
Mathematical operations on Vec's, such as min, max, rounding, etc.
Functions | |
template<typename T , size_t SIMD_WIDTH> | |
static Vec< T, SIMD_WIDTH > | simd::abs (const Vec< T, SIMD_WIDTH > &a) |
Computes the absolute value of the elements of a Vec. | |
template<typename T , size_t SIMD_WIDTH> | |
static Vec< T, SIMD_WIDTH > | simd::ceil (const Vec< T, SIMD_WIDTH > &a) |
Rounds the elements of a Vec up to the nearest integer. | |
template<typename T , size_t SIMD_WIDTH> | |
static Vec< T, SIMD_WIDTH > | simd::floor (const Vec< T, SIMD_WIDTH > &a) |
Rounds the elements of a Vec down to the nearest integer. | |
template<typename T , size_t SIMD_WIDTH> | |
static Vec< T, SIMD_WIDTH > | simd::max (const Vec< T, SIMD_WIDTH > &a, const Vec< T, SIMD_WIDTH > &b) |
Computes the maximum of the elements of two Vec's. | |
template<typename T , size_t SIMD_WIDTH> | |
static Vec< T, SIMD_WIDTH > | simd::min (const Vec< T, SIMD_WIDTH > &a, const Vec< T, SIMD_WIDTH > &b) |
Computes the minimum of the elements of two Vec's. | |
template<typename T , size_t SIMD_WIDTH> | |
static Vec< T, SIMD_WIDTH > | simd::neg (const Vec< T, SIMD_WIDTH > &a) |
Negates the elements of a Vec. | |
template<typename T , size_t SIMD_WIDTH> | |
static Vec< T, SIMD_WIDTH > | simd::round (const Vec< T, SIMD_WIDTH > &a) |
Rounds the elements of a Vec to the nearest integer. | |
template<typename T , size_t SIMD_WIDTH> | |
static Vec< T, SIMD_WIDTH > | simd::truncate (const Vec< T, SIMD_WIDTH > &a) |
Truncates the elements of a Vec to the nearest integer i.e. rounds towards zero. | |