Recursive execution. Terminating at <N>, starting at index <I>. More...
#include <VectorSpaceOps.H>

Static Public Member Functions | |
| template<class Input, class Output> | |
| static void | copy_n (Input input, Output result) |
| Somewhat equivalent to std::copy_n() but with templated loops. | |
| template<class Output, class T> | |
| static void | fill_n (Output result, const T &val) |
| Somewhat equivalent to std::fill_n() but with templated loops. | |
| template<class V, class S, class EqOp> | |
| static void | eqOpS (V &vs, const S &s, EqOp eo) |
| Apply the binary assignment operation to each vector-space component. | |
| template<class S, class V, class EqOp> | |
| static void | SeqOp (S &s, const V &vs, EqOp eo) |
| Apply the inplace binary reduction operation. | |
| template<class V1, class V2, class EqOp> | |
| static void | eqOp (V1 &vs1, const V2 &vs2, EqOp eo) |
| Apply the inplace binary assignment operation to the components. | |
| template<class V, class V1, class S, class BinaryOp> | |
| static void | opVS (V &vs, const V1 &vs1, const S &s, BinaryOp bop) |
| Apply the binary operation between vector-space and scalar data and assign the result. | |
| template<class V, class S, class V1, class BinaryOp> | |
| static void | opSV (V &vs, const S &s, const V1 &vs1, BinaryOp bop) |
| Apply the binary operation between scalar and vector-space data and assign the result. | |
| template<class V, class V1, class BinaryOp> | |
| static void | op (V &vs, const V1 &vs1, const V1 &vs2, BinaryOp bop) |
| Apply the binary operation between two vector-space data and assign the result. | |
Recursive execution. Terminating at <N>, starting at index <I>.
Operator functions for VectorSpace.
Definition at line 42 of file VectorSpaceOps.H.
|
inlinestatic |
Somewhat equivalent to std::copy_n() but with templated loops.
| [in] | input | indexable input data |
| [out] | result | indexable output data |
Definition at line 51 of file VectorSpaceOps.H.
References copy_n(), and Foam::I.
Referenced by copy_n(), VectorSpace< Form, Cmpt, Ncmpts >::operator=(), VectorSpace< Form, Cmpt, Ncmpts >::operator=(), Foam::sumReduce(), VectorSpace< Form, Cmpt, Ncmpts >::VectorSpace(), and VectorSpace< Form, Cmpt, Ncmpts >::VectorSpace().


Somewhat equivalent to std::fill_n() but with templated loops.
| [out] | result | indexable output data |
| val | the value to assign for each entry |
Definition at line 67 of file VectorSpaceOps.H.
References fill_n(), Foam::I, and Foam::T().
Referenced by VectorSpace< Form, Cmpt, Ncmpts >::fill(), fill_n(), VectorSpace< Form, Cmpt, Ncmpts >::operator=(), and VectorSpace< Form, Cmpt, Ncmpts >::VectorSpace().


Apply the binary assignment operation to each vector-space component.
| [in,out] | vs | vector-space (indexed) data |
| s | scalar/component data (non-indexed) | |
| eo | binary combine/assign operation |
Definition at line 85 of file VectorSpaceOps.H.
References EqOp, eqOpS(), Foam::I, and s().
Referenced by eqOpS(), VectorSpace< Form, Cmpt, Ncmpts >::operator*=(), and VectorSpace< Form, Cmpt, Ncmpts >::operator/=().


Apply the inplace binary reduction operation.
| [in,out] | s | scalar or component data (non-indexed) |
| [in] | vs | input vector-space (indexed) data |
| eo | binary combine/assign operation |
Definition at line 102 of file VectorSpaceOps.H.
References EqOp, Foam::I, s(), and SeqOp().
Referenced by Foam::cmptMax(), Foam::cmptMin(), Foam::cmptProduct(), Foam::cmptSum(), Foam::magSqr(), and SeqOp().


|
inlinestatic |
Apply the inplace binary assignment operation to the components.
| [in,out] | vs1 | vector-space (indexed) data |
| [in] | vs2 | second vector-space (indexed) data |
| eo | binary combine/assign operation |
Definition at line 119 of file VectorSpaceOps.H.
References EqOp, eqOp(), and Foam::I.
Referenced by Foam::cmptMag(), Foam::cmptMagSqr(), Foam::cmptSqr(), eqOp(), VectorSpace< Form, Cmpt, Ncmpts >::operator+=(), Foam::operator-(), and VectorSpace< Form, Cmpt, Ncmpts >::operator-=().


|
inlinestatic |
Apply the binary operation between vector-space and scalar data and assign the result.
| [out] | vs | vector-space (indexed) data |
| [in] | vs1 | vector-space (indexed) data operand |
| [in] | s | scalar operand |
| bop | binary operation |
Definition at line 138 of file VectorSpaceOps.H.
References Foam::I, opVS(), and s().
Referenced by Foam::operator*(), Foam::operator/(), opVS(), and Foam::stabilise().


|
inlinestatic |
Apply the binary operation between scalar and vector-space data and assign the result.
| [out] | vs | vector-space (indexed) data |
| [in] | s | scalar operand |
| [in] | vs1 | vector-space (indexed) data operand |
| bop | binary operation |
Definition at line 157 of file VectorSpaceOps.H.
References Foam::I, opSV(), and s().
Referenced by Foam::operator*(), and opSV().


|
inlinestatic |
Apply the binary operation between two vector-space data and assign the result.
| [out] | vs | vector-space (indexed) data |
| [in] | vs1 | vector-space (indexed) data operand |
| [in] | vs2 | vector-space (indexed) data operand |
| bop | binary operation |
Definition at line 176 of file VectorSpaceOps.H.
Referenced by Foam::cmptDivide(), Foam::cmptMultiply(), Foam::cmptPow(), Foam::max(), Foam::min(), Foam::minMod(), op(), Foam::operator+(), and Foam::operator-().

