Functions | |
template<class T > | |
T | sign (const T &val) |
template<class T > | |
T | uipow (const T &base, unsigned int exponent) |
template<class T , size_t d> | |
std::array< T, d > | min (const std::array< T, d > &x, const std::array< T, d > &y) |
template<class T , size_t d> | |
std::array< T, d > | min (const std::array< T, d > &x, const T &y) |
template<class T , size_t d> | |
std::array< T, d > | min (const T &x, const std::array< T, d > &y) |
template<class T , size_t d, size_t n> | |
std::array< std::array< T, n >, d > | min (const std::array< std::array< T, n >, d > &x, const T &y) |
template<class T , size_t d, size_t n> | |
std::array< std::array< T, n >, d > | min (const T &x, const std::array< std::array< T, n >, d > &y) |
template<class T , size_t d, class T1 > | |
void | minval (const std::array< T, d > &x, T1 &min_value) |
template<class T , size_t d> | |
std::array< T, d > | max (const std::array< T, d > &x, const std::array< T, d > &y) |
template<class T , size_t d> | |
std::array< T, d > | max (const std::array< T, d > &x, const T &y) |
template<class T , size_t d> | |
std::array< T, d > | max (const T &x, const std::array< T, d > &y) |
template<class T , size_t d, size_t n> | |
std::array< std::array< T, n >, d > | max (const std::array< std::array< T, n >, d > &x, const T &y) |
template<class T , size_t d, size_t n> | |
std::array< std::array< T, n >, d > | max (const T &x, const std::array< std::array< T, n >, d > &y) |
template<class T , size_t d, class T1 > | |
void | maxval (const std::array< T, d > &x, T1 &max_value) |
template<class T , size_t d, class T1 > | |
void | sum (const std::array< T, d > &x, T1 &s) |
template<class T , size_t d> | |
std::array< T, d > | abs (const std::array< T, d > &x) |
template<class T , size_t d> | |
std::array< T, d > | pow (std::array< T, d > &x, double p) |
template<class T , size_t d> | |
double | norm1 (const std::array< T, d > &x) |
template<class T , size_t d> | |
double | norm2 (const std::array< T, d > &x) |
template<class T , size_t d> | |
double | norm (const std::array< T, d > &x, int p) |
template<class T , size_t d> | |
double | normInf (const std::array< T, d > &x) |
template<class T , size_t d> | |
T | dotProduct (const std::array< T, d > &x, const std::array< T, d > &y) |
template<class T > | |
std::array< T, 3 > | crossProduct (const std::array< T, 3 > &x, const std::array< T, 3 > &y) |
template<class T > | |
T | crossProduct (const std::array< T, 2 > &x, const std::array< T, 2 > &y) |
template<class T > | |
std::vector< T > | min (const std::vector< T > &x, const std::vector< T > &y) |
template<class T > | |
std::vector< T > | min (const std::vector< T > &x, const T &y) |
template<class T > | |
std::vector< T > | min (const T &x, const std::vector< T > &y) |
template<class T > | |
std::vector< std::vector< T > > | min (const std::vector< std::vector< T > > &x, const T &y) |
template<class T > | |
std::vector< std::vector< T > > | min (const T &x, const std::vector< std::vector< T > > &y) |
template<typename T , typename std::enable_if< std::is_scalar< T >::value >::type * > | |
void | minval (const T &x, T &min_value) |
template<class T , class T1 > | |
void | minval (const std::vector< T > &x, T1 &min_value) |
template<class T > | |
std::vector< T > | max (const std::vector< T > &x, const std::vector< T > &y) |
template<class T > | |
std::vector< T > | max (const std::vector< T > &x, const T &y) |
template<class T > | |
std::vector< T > | max (const T &x, const std::vector< T > &y) |
template<class T > | |
std::vector< std::vector< T > > | max (const std::vector< std::vector< T > > &x, const T &y) |
template<class T > | |
std::vector< std::vector< T > > | max (const T &x, const std::vector< std::vector< T > > &y) |
template<typename T , typename std::enable_if< std::is_scalar< T >::value >::type * > | |
void | maxval (const T &x, T &max_value) |
template<class T , class T1 > | |
void | maxval (const std::vector< T > &x, T1 &max_value) |
template<class T , typename std::enable_if< std::is_scalar< T >::value >::type * > | |
void | sum (const T &x, T &s) |
template<class T , class T1 > | |
void | sum (const std::vector< T > &x, T1 &s) |
template<class T > | |
std::vector< T > | abs (const std::vector< T > &x) |
template<class T > | |
std::vector< T > | pow (std::vector< T > &x, double p) |
template<class T > | |
double | norm1 (const std::vector< T > &x) |
template<class T > | |
double | norm2 (const std::vector< T > &x) |
template<class T > | |
double | norm (const std::vector< T > &x, int p) |
template<class T > | |
double | normInf (const std::vector< T > &x) |
template<class T > | |
T | dotProduct (const std::vector< T > &x, const std::vector< T > &y) |
template<class T > | |
std::vector< T > | crossProduct (const std::vector< T > &x, const std::vector< T > &y) |
std::array< T, d > abs | ( | const std::array< T, d > & | x | ) |
Given a input array, x, returns a array storing the absolute value of elements in x, i.e.: z[i] = abs(x[i]), for i = 0, ..., d-1 where d is the size of x.
Template parameter can be any type such that abs() function is defined. For instance if T = std::array<T1, e>, the abs() function will call itself to return the absolute value of elements in x[i].
[in] | x | input array |
Definition at line 591 of file MathOperators_array.tpp.
std::vector< T > abs | ( | const std::vector< T > & | x | ) |
Given a ipnut vector, x, returns a vector storing the absolute value of elements in x, i.e.: z[i] = abs(x[i]), for i = 0, ..., n-1 where n is the size of x.
Template parameter can be any type such that abs() function is defined. For instance if T = std::vector<T1>, the abs() function will call itself to return the absolute value of elements in x[i].
[in] | x | input vector |
Definition at line 748 of file MathOperators_vector.tpp.
T crossProduct | ( | const std::array< T, 2 > & | x, |
const std::array< T, 2 > & | y ) |
Compute the cross product in R2 of input arrays, x and y. Template parameter can be any scalar type
[in] | x | 1st argument |
[in] | y | 2nd argument |
Definition at line 920 of file MathOperators_array.tpp.
std::array< T, 3 > crossProduct | ( | const std::array< T, 3 > & | x, |
const std::array< T, 3 > & | y ) |
Compute the cross product in R3 of input arrays, x and y. Template parameter can be any scalar type
[in] | x | 1st argument |
[in] | y | 2nd argument |
Definition at line 890 of file MathOperators_array.tpp.
std::vector< T > crossProduct | ( | const std::vector< T > & | x, |
const std::vector< T > & | y ) |
Compute the cross product in R3 of input vectors, x and y. Template parameter can be any scalar type
[in] | x | 1st argument |
[in] | y | 2nd argument |
Definition at line 1053 of file MathOperators_vector.tpp.
T dotProduct | ( | const std::array< T, d > & | x, |
const std::array< T, d > & | y ) |
Compute the scalar product of 2 input arrays, x and y, i.e.: d = sum(x * y).
Template parameter can be any scalar type
[in] | x | 1st argument |
[in] | y | 2nd argument |
Definition at line 851 of file MathOperators_array.tpp.
T dotProduct | ( | const std::vector< T > & | x, |
const std::vector< T > & | y ) |
Compute the scalar product of 2 input vectors, x and y, i.e.: d = sum(x * y).
Template parameter can be any scalar type
[in] | x | 1st argument |
[in] | y | 2nd argument |
Definition at line 1013 of file MathOperators_vector.tpp.
std::array< std::array< T, n >, d > max | ( | const std::array< std::array< T, n >, d > & | x, |
const T & | y ) |
Element-wise maximum between 2D array and constant. Given a 2D array x and a constant y, returns z such that: z[i][j] = max(x[i][j], y), for all j = 0, ..., n-1, i = 0, ..., d-1 where d is the size of x.
Template parameters T can be any type such that max is defined. For instance if T = std::array<T1, e>, max function call itself to return the element-wise maximum between x[i][j] and y.
[in] | x | 1st argument |
[in] | y | 2nd argument |
Definition at line 421 of file MathOperators_array.tpp.
std::array< T, d > max | ( | const std::array< T, d > & | x, |
const std::array< T, d > & | y ) |
Element-wise maximum between two arrays. Given two array x and y, returns z such that: z[i] = max(x[i], y[i]), for all i = 0, ..., d-1 where the d is the size of x and y.
Template parameters T can be any type such that max is defined. For instance if T = std::array<T1, e>, max function call itself to return the element-wise maximum between x[i] and y[i].
[in] | x | 1st argument |
[in] | y | 2nd argument |
Definition at line 306 of file MathOperators_array.tpp.
std::array< T, d > max | ( | const std::array< T, d > & | x, |
const T & | y ) |
Element-wise maximum between array and constant. Given a array x and a constant y, returns z such that: z[i] = max(x[i], y), for all i = 0, ..., d-1 where d is the size of x.
Template parameters T can be any type such that max is defined. For instance if T = std::array<T1, e>, max function call itself to return the element-wise maximum between x[i] and y.
[in] | x | 1st argument |
[in] | y | 2nd argument |
Definition at line 345 of file MathOperators_array.tpp.
std::vector< std::vector< T > > max | ( | const std::vector< std::vector< T > > & | x, |
const T & | y ) |
Element-wise maximum between 2D vector and constant. Given a 2D vector x and a constant y, returns z such that: z[i][j] = max(x[i][j], y), for all j = 0, ..., x[i].size(), i = 0, ..., n-1 where n = x.size().
Template parameters T can be any type such that max is defined. For instance if T = std::vector<T1>, max function call itself to return the element-wise maximum between x[i][j] and y.
[in] | x | 1st argument |
[in] | y | 2nd argument |
Definition at line 478 of file MathOperators_vector.tpp.
std::vector< T > max | ( | const std::vector< T > & | x, |
const std::vector< T > & | y ) |
Element-wise maximum between two vectors. Given two vectors x and y, returns z such that: z[i] = max(x[i], y[i]), for all i = 0, ..., n-1 where the n = min(x.size(), y.size()).
Template parameters T can be any type such that max is defined. For instance if T = std::vector<T1>, max function call itself to return the element-wise maximum between x[i] and y[i].
[in] | x | 1st argument |
[in] | y | 2nd argument |
Definition at line 360 of file MathOperators_vector.tpp.
std::vector< T > max | ( | const std::vector< T > & | x, |
const T & | y ) |
Element-wise maximum between vector and constant. Given a vector x and a constant y, returns z such that: z[i] = max(x[i], y), for all i = 0, ..., n-1 where n = x.size().
Template parameters T can be any type such that max is defined. For instance if T = std::vector<T1>, max function call itself to return the element-wise maximum between x[i] and y.
[in] | x | 1st argument |
[in] | y | 2nd argument |
Definition at line 401 of file MathOperators_vector.tpp.
std::array< std::array< T, n >, d > max | ( | const T & | x, |
const std::array< std::array< T, n >, d > & | y ) |
Element-wise maximum between constant and 2D array. Given a constant x and a 2D array y, returns z such that: z[i][j] = max(x, y[i][j]), for all j = 0, ..., n-1, i = 0, ..., d-1 where d is the size of y.
Template parameters T can be any type such that max is defined. For instance if T = std::array<T1, e>, max function call itself to return the element-wise maximum between x and y[i][j].
[in] | x | 1st argument |
[in] | y | 2nd argument |
Definition at line 460 of file MathOperators_array.tpp.
std::array< T, d > max | ( | const T & | x, |
const std::array< T, d > & | y ) |
Element-wise maximum between constant and array. Given a constant x and a array y, returns z such that: z[i] = max(x, y[i]), for all i = 0, ..., d-1 where d is the size of y.
Template parameters T can be any type such that max is defined. For instance if T = std::array<T1, e>, max function call itself to return the element-wise maximum between x and y[i].
[in] | x | 1st argument |
[in] | y | 2nd argument |
Definition at line 384 of file MathOperators_array.tpp.
std::vector< std::vector< T > > max | ( | const T & | x, |
const std::vector< std::vector< T > > & | y ) |
Element-wise maximum between constant and 2D vector. Given a constant x and a 2D vector y, returns z such that: z[i][j] = max(x, y[i][j]), for all j = 0, ..., y[i].size(), i = 0, ..., n-1 where n = y.size().
Template parameters T can be any type such that max is defined. For instance if T = std::vector<T1>, max function call itself to return the element-wise maximum between x and y[i][j].
[in] | x | 1st argument |
[in] | y | 2nd argument |
Definition at line 518 of file MathOperators_vector.tpp.
std::vector< T > max | ( | const T & | x, |
const std::vector< T > & | y ) |
Element-wise maximum between constant and vector. Given a constant x and a vector y, returns z such that: z[i] = max(x, y[i]), for all i = 0, ..., d-1 where d is the size of y.
Template parameters T can be any type such that max is defined. For instance if T = std::vector<T1>, max function call itself to return the element-wise maximum between x and y[i].
[in] | x | 1st argument |
[in] | y | 2nd argument |
Definition at line 441 of file MathOperators_vector.tpp.
void maxval | ( | const std::array< T, d > & | x, |
T1 & | max_value ) |
Returns the element with the largest value within a array, i.e. given an input array, x max_value = max(x[i]) over all i = 0, ..., n-1 where n = x.size().
Parameters template can be of any type with the following requirements:
[in] | x | input array |
[in,out] | max_value | on output stores the elements with the largest value. |
Definition at line 497 of file MathOperators_array.tpp.
void maxval | ( | const std::vector< T > & | x, |
T1 & | max_value ) |
Returns the element with the largest value within a vector, i.e. given an input vector, x max_value = max(x[i]) over all i = 0, ..., n-1 where n = x.size().
Parameters template can be of any type with the following requirements:
[in] | x | input vector |
[in,out] | max_value | on output stores the elements with the largest value. |
Definition at line 603 of file MathOperators_vector.tpp.
|
inline |
Overloading of maxval() function for scalar types.
[in] | x | input scalar |
[in,out] | max_value | on output returns the input value |
Definition at line 547 of file MathOperators_vector.tpp.
std::array< std::array< T, n >, d > min | ( | const std::array< std::array< T, n >, d > & | x, |
const T & | y ) |
Element-wise minimum between 2D array and constant. Given a 2D array x and a constant y, returns z such that: z[i][j] = min(x[i][j], y), for all j = 0, ..., n-1, i = 0, ..., d-1 where d is the size of x.
Template parameters T can be any type such that min is defined. For instance if T = std::array<T1, e>, min function call itself to return the element-wise minimum between x[i][j] and y.
[in] | x | 1st argument |
[in] | y | 2nd argument |
Definition at line 182 of file MathOperators_array.tpp.
std::array< T, d > min | ( | const std::array< T, d > & | x, |
const std::array< T, d > & | y ) |
Element-wise minimum between two arrays. Given two array x and y, returns z such that: z[i] = min(x[i], y[i]), for all i = 0, ..., d-1 where the d is the size of x and y.
Template parameters T can be any type such that min is defined. For instance if T = std::array<T1, e>, min function call itself to return the element-wise minimum between x[i] and y[i].
[in] | x | 1st argument |
[in] | y | 2nd argument |
Definition at line 67 of file MathOperators_array.tpp.
std::array< T, d > min | ( | const std::array< T, d > & | x, |
const T & | y ) |
Element-wise minimum between array and constant. Given a array x and a constant y, returns z such that: z[i] = min(x[i], y), for all i = 0, ..., d-1 where d is the size of x.
Template parameters T can be any type such that min is defined. For instance if T = std::array<T1, e>, min function call itself to return the element-wise minimum between x[i] and y.
[in] | x | 1st argument |
[in] | y | 2nd argument |
Definition at line 106 of file MathOperators_array.tpp.
std::vector< std::vector< T > > min | ( | const std::vector< std::vector< T > > & | x, |
const T & | y ) |
Element-wise minimum between 2D vector and constant. Given a 2D vector x and a constant y, returns z such that: z[i][j] = min(x[i][j], y), for all j = 0, ..., x[i].size(), i = 0, ..., n-1 where n = x.size().
Template parameters T can be any type such that min is defined. For instance if T = std::vector<T1>, min function call itself to return the element-wise minimum between x[i][j] and y.
[in] | x | 1st argument |
[in] | y | 2nd argument |
Definition at line 184 of file MathOperators_vector.tpp.
std::vector< T > min | ( | const std::vector< T > & | x, |
const std::vector< T > & | y ) |
Element-wise minimum between two vectors. Given two vectors x and y, returns z such that: z[i] = min(x[i], y[i]), for all i = 0, ..., n-1 where the n = min(x.size(), y.size()).
Template parameters T can be any type such that min is defined. For instance if T = std::vector<T1>, min function call itself to return the element-wise minimum between x[i] and y[i].
[in] | x | 1st argument |
[in] | y | 2nd argument |
Definition at line 66 of file MathOperators_vector.tpp.
std::vector< T > min | ( | const std::vector< T > & | x, |
const T & | y ) |
Element-wise minimum between vector and constant. Given a vector x and a constant y, returns z such that: z[i] = min(x[i], y), for all i = 0, ..., n-1 where n = x.size().
Template parameters T can be any type such that min is defined. For instance if T = std::vector<T1>, min function call itself to return the element-wise minimum between x[i] and y.
[in] | x | 1st argument |
[in] | y | 2nd argument |
Definition at line 107 of file MathOperators_vector.tpp.
std::array< std::array< T, n >, d > min | ( | const T & | x, |
const std::array< std::array< T, n >, d > & | y ) |
Element-wise minimum between constant and 2D array. Given a constant x and a 2D array y, returns z such that: z[i][j] = min(x, y[i][j]), for all j = 0, ..., n-1, i = 0, ..., d-1 where d is the size of y.
Template parameters T can be any type such that min is defined. For instance if T = std::array<T1, e>, min function call itself to return the element-wise minimum between x and y[i][j].
[in] | x | 1st argument |
[in] | y | 2nd argument |
Definition at line 221 of file MathOperators_array.tpp.
std::array< T, d > min | ( | const T & | x, |
const std::array< T, d > & | y ) |
Element-wise minimum between constant and array. Given a constant x and a array y, returns z such that: z[i] = min(x, y[i]), for all i = 0, ..., d-1 where d is the size of y.
Template parameters T can be any type such that min is defined. For instance if T = std::array<T1, e>, min function call itself to return the element-wise minimum between x and y[i].
[in] | x | 1st argument |
[in] | y | 2nd argument |
Definition at line 145 of file MathOperators_array.tpp.
std::vector< std::vector< T > > min | ( | const T & | x, |
const std::vector< std::vector< T > > & | y ) |
Element-wise minimum between constant and 2D vector. Given a constant x and a 2D vector y, returns z such that: z[i][j] = min(x, y[i][j]), for all j = 0, ..., y[i].size(), i = 0, ..., n-1 where n = y.size().
Template parameters T can be any type such that min is defined. For instance if T = std::vector<T1>, min function call itself to return the element-wise minimum between x and y[i][j].
[in] | x | 1st argument |
[in] | y | 2nd argument |
Definition at line 224 of file MathOperators_vector.tpp.
std::vector< T > min | ( | const T & | x, |
const std::vector< T > & | y ) |
Element-wise minimum between constant and vector. Given a constant x and a vector y, returns z such that: z[i] = min(x, y[i]), for all i = 0, ..., d-1 where d is the size of y.
Template parameters T can be any type such that min is defined. For instance if T = std::vector<T1>, min function call itself to return the element-wise minimum between x and y[i].
[in] | x | 1st argument |
[in] | y | 2nd argument |
Definition at line 147 of file MathOperators_vector.tpp.
void minval | ( | const std::array< T, d > & | x, |
T1 & | min_value ) |
Returns the element with the smallest value within a array, i.e. given an input array, x min_value = min(x[i]) over all i = 0, ..., d-1
Parameters template can be of any type with the following requirements:
[in] | x | input array |
[in,out] | min_value | on output stores the elements with the smallest value. |
Definition at line 256 of file MathOperators_array.tpp.
void minval | ( | const std::vector< T > & | x, |
T1 & | min_value ) |
Returns the element with the smallest value within a vector, i.e. given an input vector, x min_value = min(x[i]) over all i = 0, ..., n-1 where n = x.size().
Parameters template can be of any type with the following requirements:
[in] | x | input vector |
[in,out] | min_value | on output stores the elements with the smallest value. |
Definition at line 309 of file MathOperators_vector.tpp.
|
inline |
Overloading of minval() function for scalar types.
[in] | x | input scalar |
[in,out] | min_value | on output returns the input value |
Definition at line 253 of file MathOperators_vector.tpp.
double norm | ( | const std::array< T, d > & | x, |
int | p ) |
Compute the generic norm of a input array, x, i.e.: n = pow( sum( pow( abs(x), p ) ), 1/p ).
Template parameter can be any scalar type
[in] | x | input array |
[in] | p | norm index |
Definition at line 754 of file MathOperators_array.tpp.
double norm | ( | const std::vector< T > & | x, |
int | p ) |
Compute the generic norm of a input vector, x, i.e.: n = pow( sum( pow( abs(x), p ) ), 1/p ).
Template parameter can be any scalar type
[in] | x | input vector |
[in] | p | norm index |
Definition at line 916 of file MathOperators_vector.tpp.
double norm1 | ( | const std::array< T, d > & | x | ) |
Compute the 1-norm of a input array, x, i.e.: n = sum(abs(x)).
Template parameter can be any scalar type
[in] | x | input array |
Definition at line 675 of file MathOperators_array.tpp.
double norm1 | ( | const std::vector< T > & | x | ) |
Compute the 1-norm of a input vector, x, i.e.: n = sum(abs(x)).
Template parameter can be any scalar type
[in] | x | input vector |
Definition at line 837 of file MathOperators_vector.tpp.
double norm2 | ( | const std::array< T, d > & | x | ) |
Compute the 2-norm of a input array, x, i.e.: n = sqrt(sum(pow(x, 2))).
Template parameter can be any scalar type
[in] | x | input array |
Definition at line 714 of file MathOperators_array.tpp.
double norm2 | ( | const std::vector< T > & | x | ) |
Compute the 2-norm of a input vector, x, i.e.: n = sqrt(sum(pow(x, 2))).
Template parameter can be any scalar type
[in] | x | input vector |
Definition at line 877 of file MathOperators_vector.tpp.
double normInf | ( | const std::array< T, d > & | x | ) |
Compute the infinity-norm of a input array, x, i.e.: n = maxval(abs(x)).
Template parameter can be any scalar type
[in] | x | input array |
Definition at line 805 of file MathOperators_array.tpp.
double normInf | ( | const std::vector< T > & | x | ) |
Compute the infinity-norm of a input vector, x, i.e.: n = maxval(abs(x)).
Template parameter can be any scalar type
[in] | x | input vector |
Definition at line 966 of file MathOperators_vector.tpp.
std::array< T, d > pow | ( | std::array< T, d > & | x, |
double | p ) |
Given a input array, x, returns a array storing the p-th power of its elements, i.e.: z[i] = pow(x[i], p), for i = 0, ..., d-1 where d is the size of x.
Template parameter can be any type such that pow function is defined. For instance if T = std::array<T1, e>, the pow() function will call itself to return the p-th power of the elements in x[i].
[in] | x | input array |
[in] | p | power index |
Definition at line 637 of file MathOperators_array.tpp.
std::vector< T > pow | ( | std::vector< T > & | x, |
double | p ) |
Given a input vector, x, returns a vector storing the p-th power of its elements, i.e.: z[i] = pow(x[i], p), for i = 0, ..., n-1 where n is the size of x.
Template parameter can be any type such that pow function is defined. For instance if T = std::vector<T1>, the pow() function will call itself to return the p-th power of the elements in x[i].
[in] | x | input vector |
[in] | p | power index |
Definition at line 796 of file MathOperators_vector.tpp.
T sign | ( | const T & | val | ) |
Sign function. Given a a variable of integral type, val, returns: 1 if val > 0 -1, othersize.
Template parameters can be any integral type such that operator< is defined.
Definition at line 38 of file Operators.tpp.
void sum | ( | const std::array< T, d > & | x, |
T1 & | s ) |
Given a input array, x, returns the sum of its elements, i.e.: s = sum (x[i]) over all i = 0, ..., n-1 where n = x.size().
Parameters template can be of any type with the following requirements:
[in] | x | input array |
[in,out] | s | sum of element in x. |
Definition at line 544 of file MathOperators_array.tpp.
void sum | ( | const std::vector< T > & | x, |
T1 & | s ) |
Given a input vector, x, returns the sum of its elements, i.e.: s = sum (x[i]) over all i = 0, ..., n-1 where n = x.size().
Parameters template can be of any type with the following requirements:
[in] | x | input vector |
[in,out] | s | sum of element in x. |
Definition at line 700 of file MathOperators_vector.tpp.
|
inline |
Overloading of sum() function for scalar type.
[in] | x | input scalar |
[in,out] | s | on output stores the value of the input scalar |
Definition at line 644 of file MathOperators_vector.tpp.
T uipow | ( | const T & | base, |
unsigned int | exponent ) |
Power function with unsigned integer exponent.
[in] | base | Input argument |
[in] | exponent | Power index |
Template parameter can be any type such that *operator is defined.
Definition at line 55 of file Operators.tpp.