FreePOOMA
2.4.1
|
General global reduction functions. More...
Functions | |
template<int Dim, class T , class EngineTag , class Op > | |
T | globalReduction (const Vector< Dim, T, EngineTag > &v, const Op &op) |
template<int Dim, class T , class EngineTag , class Op > | |
T | globalReduction (const Tensor< Dim, T, EngineTag > &t, const Op &op) |
template<int Dim, class T , class Op > | |
T | globalReduction (const Tensor< Dim, T, Full > &t, const Op &op) |
template<int Dim, class T , class Op > | |
T | globalReduction (const Tensor< Dim, T, Antisymmetric > &t, const Op &op) |
template<int Dim, class T , class Op > | |
T | globalReduction (const Tensor< Dim, T, Diagonal > &t, const Op &op) |
template<int Dim1, int Dim2, class T , class EngineTag , class Op > | |
T | globalReduction (const TinyMatrix< Dim1, Dim2, T, EngineTag > &m, const Op &op) |
template<int Dim1, int Dim2, class T , class Op > | |
T | globalReduction (const TinyMatrix< Dim1, Dim2, T, Full > &m, const Op &op) |
template<int Dim, class T , class EngineTag > | |
T | sum (const Vector< Dim, T, EngineTag > &v) |
Sum up the elements of a Vector. | |
template<int Dim, class T , class EngineTag > | |
T | prod (const Vector< Dim, T, EngineTag > &v) |
Compute the product of the elements of a Vector. | |
template<int Dim, class T , class EngineTag > | |
T | min (const Vector< Dim, T, EngineTag > &v) |
Find the smallest element of a Vector. | |
template<int Dim, class T , class EngineTag > | |
T | max (const Vector< Dim, T, EngineTag > &v) |
Find the largest element of a Vector. | |
template<int Dim, class T , class EngineTag > | |
bool | all (const Vector< Dim, T, EngineTag > &v) |
Report if all of the elements of a Vector are true. | |
template<int Dim, class T , class EngineTag > | |
bool | any (const Vector< Dim, T, EngineTag > &v) |
Report if some of the elments of a Vector are true. | |
template<int Dim, class T , class EngineTag > | |
T | bitOr (const Vector< Dim, T, EngineTag > &v) |
Bitwise-or all of the elements together. | |
template<int Dim, class T , class EngineTag > | |
T | bitAnd (const Vector< Dim, T, EngineTag > &v) |
Bitwise-and all of the elements together. | |
template<int Dim, class T , class EngineTag > | |
T | sum (const Tensor< Dim, T, EngineTag > &t) |
Sum up the elements of a Tensor. | |
template<int Dim, class T > | |
T | sum (const Tensor< Dim, T, Antisymmetric > &t) |
Trivial case (elements must sum to zero). | |
template<int Dim, class T , class EngineTag > | |
T | prod (const Tensor< Dim, T, EngineTag > &t) |
Compute the product of the elements of a Tensor. | |
template<int Dim, class T > | |
T | prod (const Tensor< Dim, T, Antisymmetric > &t) |
Trivial case (diagonal is zero). | |
template<int Dim, class T , class EngineTag > | |
T | min (const Tensor< Dim, T, EngineTag > &t) |
Find the smallest element of a Tensor. | |
template<int Dim, class T , class EngineTag > | |
T | max (const Tensor< Dim, T, EngineTag > &t) |
Find the largest element of a Tensor. | |
template<int Dim, class T , class EngineTag > | |
bool | all (const Tensor< Dim, T, EngineTag > &t) |
Report if all of the elements of a Tensor are true. | |
template<int Dim, class T > | |
bool | all (const Tensor< Dim, T, Antisymmetric > &t) |
Trivial case (diagonal is zero). | |
template<int Dim, class T , class EngineTag > | |
bool | any (const Tensor< Dim, T, EngineTag > &t) |
Report if some of the elments of a Tensor are true. | |
template<int Dim, class T , class EngineTag > | |
T | bitOr (const Tensor< Dim, T, EngineTag > &t) |
Bitwise-or all of the elements together. | |
template<int Dim, class T , class EngineTag > | |
T | bitAnd (const Tensor< Dim, T, EngineTag > &t) |
Bitwise-and all of the elements together. | |
template<int Dim1, int Dim2, class T , class EngineTag > | |
T | sum (const TinyMatrix< Dim1, Dim2, T, EngineTag > &m) |
Sum up the elements of a TinyMatrix. | |
template<int Dim1, int Dim2, class T , class EngineTag > | |
T | prod (const TinyMatrix< Dim1, Dim2, T, EngineTag > &m) |
Compute the product of the elements of a TinyMatrix. | |
template<int Dim1, int Dim2, class T , class EngineTag > | |
T | min (const TinyMatrix< Dim1, Dim2, T, EngineTag > &m) |
Find the smallest element of a TinyMatrix. | |
template<int Dim1, int Dim2, class T , class EngineTag > | |
T | max (const TinyMatrix< Dim1, Dim2, T, EngineTag > &m) |
Find the largest element of a TinyMatrix. | |
template<int Dim1, int Dim2, class T , class EngineTag > | |
bool | all (const TinyMatrix< Dim1, Dim2, T, EngineTag > &m) |
Report if all of the elements of a TinyMatrix are true. | |
template<int Dim1, int Dim2, class T , class EngineTag > | |
bool | any (const TinyMatrix< Dim1, Dim2, T, EngineTag > &m) |
Report if some of the elments of a TinyMatrix are true. | |
template<int Dim1, int Dim2, class T , class EngineTag > | |
T | bitOr (const TinyMatrix< Dim1, Dim2, T, EngineTag > &m) |
Bitwise-or all of the elements together. | |
template<int Dim1, int Dim2, class T , class EngineTag > | |
T | bitAnd (const TinyMatrix< Dim1, Dim2, T, EngineTag > &m) |
Bitwise-and all of the elements together. |
General global reduction functions.
Functions:
Note: these functions work for reductions that apply pairwise arithmetic operations on the elements (e.g., sum, prod). This does not work for reductions like all() and any().
T globalReduction | ( | const Vector< Dim, T, EngineTag > & | v, |
const Op & | op | ||
) | [inline] |
T globalReduction | ( | const Tensor< Dim, T, EngineTag > & | t, |
const Op & | op | ||
) | [inline] |
T globalReduction | ( | const Tensor< Dim, T, Full > & | t, |
const Op & | op | ||
) | [inline] |
T globalReduction | ( | const Tensor< Dim, T, Antisymmetric > & | t, |
const Op & | op | ||
) | [inline] |
T globalReduction | ( | const Tensor< Dim, T, Diagonal > & | t, |
const Op & | op | ||
) | [inline] |
T globalReduction | ( | const TinyMatrix< Dim1, Dim2, T, EngineTag > & | m, |
const Op & | op | ||
) | [inline] |
T globalReduction | ( | const TinyMatrix< Dim1, Dim2, T, Full > & | m, |
const Op & | op | ||
) | [inline] |
Sum up the elements of a Vector.
References globalReduction().
Compute the product of the elements of a Vector.
References globalReduction().
Find the smallest element of a Vector.
References globalReduction().
Find the largest element of a Vector.
References globalReduction().
Report if all of the elements of a Vector are true.
Report if some of the elments of a Vector are true.
Bitwise-or all of the elements together.
References globalReduction().
Bitwise-and all of the elements together.
References globalReduction().
Sum up the elements of a Tensor.
References globalReduction().
T sum | ( | const Tensor< Dim, T, Antisymmetric > & | t | ) |
Trivial case (elements must sum to zero).
Compute the product of the elements of a Tensor.
References globalReduction().
T prod | ( | const Tensor< Dim, T, Antisymmetric > & | t | ) |
Trivial case (diagonal is zero).
Find the smallest element of a Tensor.
References globalReduction().
Find the largest element of a Tensor.
References globalReduction().
Report if all of the elements of a Tensor are true.
bool all | ( | const Tensor< Dim, T, Antisymmetric > & | t | ) |
Trivial case (diagonal is zero).
Report if some of the elments of a Tensor are true.
Bitwise-or all of the elements together.
References globalReduction().
Bitwise-and all of the elements together.
References globalReduction().
T sum | ( | const TinyMatrix< Dim1, Dim2, T, EngineTag > & | m | ) |
Sum up the elements of a TinyMatrix.
References globalReduction().
T prod | ( | const TinyMatrix< Dim1, Dim2, T, EngineTag > & | m | ) |
Compute the product of the elements of a TinyMatrix.
References globalReduction().
T min | ( | const TinyMatrix< Dim1, Dim2, T, EngineTag > & | m | ) |
Find the smallest element of a TinyMatrix.
References globalReduction().
T max | ( | const TinyMatrix< Dim1, Dim2, T, EngineTag > & | m | ) |
Find the largest element of a TinyMatrix.
References globalReduction().
bool all | ( | const TinyMatrix< Dim1, Dim2, T, EngineTag > & | m | ) |
Report if all of the elements of a TinyMatrix are true.
bool any | ( | const TinyMatrix< Dim1, Dim2, T, EngineTag > & | m | ) |
Report if some of the elments of a TinyMatrix are true.
T bitOr | ( | const TinyMatrix< Dim1, Dim2, T, EngineTag > & | m | ) |
Bitwise-or all of the elements together.
References globalReduction().
T bitAnd | ( | const TinyMatrix< Dim1, Dim2, T, EngineTag > & | m | ) |
Bitwise-and all of the elements together.
References globalReduction().