|
| template<typename T > |
| static void | gstlrn::VectorHelper::add (VectorNumT< T > &vecout, const VectorNumT< T > &v1, const VectorNumT< T > &v2) |
| |
| template<typename T > |
| static void | gstlrn::VectorHelper::increment (VectorNumT< T > &vecout, const VectorNumT< T > &v1) |
| |
| template<typename T , typename U > |
| static void | gstlrn::VectorHelper::add (VectorNumT< T > &vecout, const VectorNumT< T > &v1, U v2) |
| |
| template<typename T > |
| static void | gstlrn::VectorHelper::increment (VectorNumT< T > &vecout, const VectorNumT< T > &v1, T v2) |
| |
| template<typename T > |
| static void | gstlrn::VectorHelper::subtract (VectorNumT< T > &vecout, const VectorNumT< T > &v1, const VectorNumT< T > &v2) |
| |
| template<typename T > |
| static void | gstlrn::VectorHelper::decrement (VectorNumT< T > &vecout, const VectorNumT< T > &v1) |
| |
| template<typename T , typename U > |
| static void | gstlrn::VectorHelper::subtract (VectorNumT< T > &vecout, const VectorNumT< T > &v1, U v2, bool flagOpposite=false) |
| |
| template<typename T > |
| static void | gstlrn::VectorHelper::decrement (VectorNumT< T > &vecout, const VectorNumT< T > &v1, T v2) |
| |
| template<typename T > |
| static void | gstlrn::VectorHelper::multiply (VectorNumT< T > &vecout, const VectorNumT< T > &v1, const VectorNumT< T > &v2) |
| |
| template<typename T > |
| static void | gstlrn::VectorHelper::multiplyAssign (VectorNumT< T > &vecout, const VectorNumT< T > &v1) |
| |
| template<typename T , typename U > |
| static void | gstlrn::VectorHelper::multiply (VectorNumT< T > &vecout, const VectorNumT< T > &v1, U v2) |
| |
| template<typename T > |
| static void | gstlrn::VectorHelper::multiplyAssign (VectorNumT< T > &vecout, const VectorNumT< T > &v1, T v2) |
| |
| template<typename T > |
| static void | gstlrn::VectorHelper::divide (VectorNumT< T > &vecout, const VectorNumT< T > &v1, const VectorNumT< T > &v2) |
| |
| template<typename T > |
| static void | gstlrn::VectorHelper::divideAssign (VectorNumT< T > &vecout, const VectorNumT< T > &v1) |
| |
| template<typename T , typename U > |
| static void | gstlrn::VectorHelper::divide (VectorNumT< T > &vecout, const VectorNumT< T > &v1, U v2, bool flagOpposite=false) |
| |
| template<typename T > |
| static void | gstlrn::VectorHelper::divideAssign (VectorNumT< T > &vecout, const VectorNumT< T > &v1, T v2) |
| |
Action: These operators perform basic operations between two vectors of the same size (or a vector and a scalar) and return the result in the first argument. They are not meant to be exposted in foreign language and, therefore, they benefit from the polymorphism.
They have been defined to allow efficient calculations without using any allocation
◆ add() [1/2]
◆ add() [2/2]
template<typename T , typename U >
| static void gstlrn::VectorHelper::add |
( |
VectorNumT< T > & |
vecout, |
|
|
const VectorNumT< T > & |
v1, |
|
|
U |
v2 |
|
) |
| |
|
inlinestatic |
◆ decrement() [1/2]
template<typename T >
| static void gstlrn::VectorHelper::decrement |
( |
VectorNumT< T > & |
vecout, |
|
|
const VectorNumT< T > & |
v1 |
|
) |
| |
|
inlinestatic |
◆ decrement() [2/2]
template<typename T >
| static void gstlrn::VectorHelper::decrement |
( |
VectorNumT< T > & |
vecout, |
|
|
const VectorNumT< T > & |
v1, |
|
|
T |
v2 |
|
) |
| |
|
inlinestatic |
◆ divide() [1/2]
◆ divide() [2/2]
template<typename T , typename U >
| static void gstlrn::VectorHelper::divide |
( |
VectorNumT< T > & |
vecout, |
|
|
const VectorNumT< T > & |
v1, |
|
|
U |
v2, |
|
|
bool |
flagOpposite = false |
|
) |
| |
|
inlinestatic |
◆ divideAssign() [1/2]
template<typename T >
| static void gstlrn::VectorHelper::divideAssign |
( |
VectorNumT< T > & |
vecout, |
|
|
const VectorNumT< T > & |
v1 |
|
) |
| |
|
inlinestatic |
◆ divideAssign() [2/2]
template<typename T >
| static void gstlrn::VectorHelper::divideAssign |
( |
VectorNumT< T > & |
vecout, |
|
|
const VectorNumT< T > & |
v1, |
|
|
T |
v2 |
|
) |
| |
|
inlinestatic |
◆ increment() [1/2]
template<typename T >
| static void gstlrn::VectorHelper::increment |
( |
VectorNumT< T > & |
vecout, |
|
|
const VectorNumT< T > & |
v1 |
|
) |
| |
|
inlinestatic |
◆ increment() [2/2]
template<typename T >
| static void gstlrn::VectorHelper::increment |
( |
VectorNumT< T > & |
vecout, |
|
|
const VectorNumT< T > & |
v1, |
|
|
T |
v2 |
|
) |
| |
|
inlinestatic |
◆ multiply() [1/2]
◆ multiply() [2/2]
template<typename T , typename U >
| static void gstlrn::VectorHelper::multiply |
( |
VectorNumT< T > & |
vecout, |
|
|
const VectorNumT< T > & |
v1, |
|
|
U |
v2 |
|
) |
| |
|
inlinestatic |
◆ multiplyAssign() [1/2]
template<typename T >
| static void gstlrn::VectorHelper::multiplyAssign |
( |
VectorNumT< T > & |
vecout, |
|
|
const VectorNumT< T > & |
v1 |
|
) |
| |
|
inlinestatic |
◆ multiplyAssign() [2/2]
template<typename T >
| static void gstlrn::VectorHelper::multiplyAssign |
( |
VectorNumT< T > & |
vecout, |
|
|
const VectorNumT< T > & |
v1, |
|
|
T |
v2 |
|
) |
| |
|
inlinestatic |
◆ subtract() [1/2]
◆ subtract() [2/2]
template<typename T , typename U >
| static void gstlrn::VectorHelper::subtract |
( |
VectorNumT< T > & |
vecout, |
|
|
const VectorNumT< T > & |
v1, |
|
|
U |
v2, |
|
|
bool |
flagOpposite = false |
|
) |
| |
|
inlinestatic |