Free functions for ArrayContainer.

Functions

template<typename T , bool A>
ArrayContainer< T, A > & operator+= (ArrayContainer< T, A > &array, typename ArrayContainer< T, A >::parameter_type x)
 To be used for arithmetic types.
template<typename T , bool A>
ArrayContainer< T, A > & operator-= (ArrayContainer< T, A > &array, typename ArrayContainer< T, A >::parameter_type x)
 To be used for arithmetic types.
template<typename T , bool A>
ArrayContainer< T, A > & operator*= (ArrayContainer< T, A > &array, typename ArrayContainer< T, A >::parameter_type x)
 To be used for arithmetic types.
template<typename T , bool A>
ArrayContainer< T, A > & operator/= (ArrayContainer< T, A > &array, typename ArrayContainer< T, A >::parameter_type x)
 To be used for arithmetic types.
template<typename T , bool A>
ArrayContainer< T, A > & operator%= (ArrayContainer< T, A > &array, typename ArrayContainer< T, A >::parameter_type x)
 To be used for arithmetic types.
template<typename T , bool A>
ArrayContainer< T *, A > & operator+= (ArrayContainer< T *, A > &array, typename ArrayContainer< T *, A >::difference_type x)
 To be used for pointer types.
template<typename T , bool A>
ArrayContainer< T *, A > & operator-= (ArrayContainer< T *, A > &array, typename ArrayContainer< T *, A >::difference_type x)
 To be used for pointer types.
template<typename T1 , bool A1, typename T2 , bool A2>
ArrayContainer< T1, A1 > & operator+= (ArrayContainer< T1, A1 > &x, const ArrayContainer< T2, A2 > &y)
 Component-wise addition.
template<typename T1 , bool A1, typename T2 , bool A2>
ArrayContainer< T1, A1 > & operator-= (ArrayContainer< T1, A1 > &x, const ArrayContainer< T2, A2 > &y)
 Component-wise subtraction.
template<typename T1 , bool A1, typename T2 , bool A2>
ArrayContainer< T1, A1 > & operator*= (ArrayContainer< T1, A1 > &x, const ArrayContainer< T2, A2 > &y)
 Component-wise multiplication.
template<typename T1 , bool A1, typename T2 , bool A2>
ArrayContainer< T1, A1 > & operator/= (ArrayContainer< T1, A1 > &x, const ArrayContainer< T2, A2 > &y)
 Component-wise division.
template<typename T1 , bool A1, typename T2 , bool A2>
ArrayContainer< T1, A1 > & operator%= (ArrayContainer< T1, A1 > &x, const ArrayContainer< T2, A2 > &y)
 Component-wise modulus.
template<typename T , bool A>
Array::computeSum (const ArrayContainer< T, A > &x)
 Return the sum of the components.
template<typename T , bool A>
Array::computeProduct (const ArrayContainer< T, A > &x)
 Return the product of the components.
template<typename T , bool A>
Array::computeMinimum (const ArrayContainer< T, A > &x)
 Return the minimum component. Use < for comparison.
template<typename T , bool A>
Array::computeMaximum (const ArrayContainer< T, A > &x)
 Return the maximum component. Use > for comparison.
template<typename T , bool A>
void Array::applyAbs (ArrayContainer< T, A > *x)
 Apply the absolute value ($|x|$) to each array element.
template<typename T , bool A>
void Array::applyAcos (ArrayContainer< T, A > *x)
 Apply the inverse cosine ($ \cos^{-1}(x) $) to each array element.
template<typename T , bool A>
void Array::applyAsin (ArrayContainer< T, A > *x)
 Apply the inverse sine ($ \sin^{-1}(x) $) to each array element.
template<typename T , bool A>
void Array::applyAtan (ArrayContainer< T, A > *x)
 Apply the inverse tangent ($ \tan^{-1}(x) $) to each array element.
template<typename T , bool A>
void Array::applyCeil (ArrayContainer< T, A > *x)
 Apply the ceiling function ($ \lceil x \rceil $) to each array element.
template<typename T , bool A>
void Array::applyCos (ArrayContainer< T, A > *x)
 Apply the cosine ($ \cos(x) $) to each array element.
template<typename T , bool A>
void Array::applyCosh (ArrayContainer< T, A > *x)
 Apply the hyperbolic cosine ($ \cosh(x) $) to each array element.
template<typename T , bool A>
void Array::applyExp (ArrayContainer< T, A > *x)
 Apply the exponential function ($ \mathrm{e}^x $) to each array element.
template<typename T , bool A>
void Array::applyFloor (ArrayContainer< T, A > *x)
 Apply the floor function ($ \lfloor x \rfloor $) to each array element.
template<typename T , bool A>
void Array::applyLog (ArrayContainer< T, A > *x)
 Apply the natural logarithm ($ \ln(x) $) to each array element.
template<typename T , bool A>
void Array::applyLog10 (ArrayContainer< T, A > *x)
 Apply the logarithm base 10 ($ \log_{10}(x) $) to each array element.
template<typename T , bool A>
void Array::applySin (ArrayContainer< T, A > *x)
 Apply the sine ($ \sin(x) $) to each array element.
template<typename T , bool A>
void Array::applySinh (ArrayContainer< T, A > *x)
 Apply the hyperbolic sine ($ \sinh(x) $) to each array element.
template<typename T , bool A>
void Array::applySqrt (ArrayContainer< T, A > *x)
 Apply the square root ($ \sqrt{x} $) to each array element.
template<typename T , bool A>
void Array::applyTan (ArrayContainer< T, A > *x)
 Apply the tangent ($ \tan(x) $) to each array element.
template<typename T , bool A>
void Array::applyTanh (ArrayContainer< T, A > *x)
 Apply the hyperbolic tangent ($ \tanh(x) $) to each array element.

Detailed Description

Generated on Thu Jun 30 02:14:51 2016 for Algorithms and Data Structures Package by  doxygen 1.6.3