Om  1.0.0
A universal framework for multimedia simulation
Classes | Namespaces | Functions
omSIMDArray.h File Reference
#include "omMathConfig.h"
#include "omScalarMath.h"

Classes

class  om::math::SIMDArray< T, width >
 The prototype for the SIMDArray class for wide SIMD operations. More...
 

Namespaces

 om
 The enclosing namespace for the entire Om library.
 
 om::math
 A namespace containing classes and functions that do fast math operations.
 

Functions

template<typename T , Size width>
SIMDArray< T, width > om::math::operator+ (const T &value, const SIMDArray< T, width > &scalar)
 Add a scalar value to each component of this scalar and return the resulting scalar. More...
 
template<typename T , Size width>
SIMDArray< T, width > om::math::operator- (const T &value, const SIMDArray< T, width > &scalar)
 Subtract a scalar value from each component of this scalar and return the resulting scalar. More...
 
template<typename T , Size width>
SIMDArray< T, width > om::math::operator* (const T &value, const SIMDArray< T, width > &scalar)
 Multiply a scalar value by each component of this scalar and return the resulting scalar. More...
 
template<typename T , Size width>
SIMDArray< T, width > om::math::operator/ (const T &value, const SIMDArray< T, width > &scalar)
 Divide each component of this scalar by a scalar value and return the resulting scalar. More...
 
template<typename T , Size width>
SIMDArray< T, width > om::math::abs (const SIMDArray< T, width > &scalar)
 Compute the absolute value of each component of the specified SIMD scalar and return the result. More...
 
template<typename T , Size width>
SIMDArray< T, width > om::math::sqrt (const SIMDArray< T, width > &scalar)
 Compute the square root of each component of the specified SIMD scalar and return the result. More...
 
template<typename T , Size width>
SIMDArray< T, width > om::math::min (const SIMDArray< T, width > &scalar1, const SIMDArray< T, width > &scalar2)
 Compute the minimum of each component of the specified SIMD scalars and return the result. More...
 
template<typename T , Size width>
SIMDArray< T, width > om::math::max (const SIMDArray< T, width > &scalar1, const SIMDArray< T, width > &scalar2)
 Compute the maximum of each component of the specified SIMD scalars and return the result. More...