Tool to manipulate and scale a vector entry while building a vector. More...
#include <core/alien/data/utils/VectorElement.h>
Public Member Functions | |
| MultVectorElementT (Arccore::ArrayView< T > values, T factor, Arccore::ConstArrayView< Arccore::Integer > indexes, Arccore::Integer local_offset) | |
| Constructor. | |
| void | operator= (Arccore::ConstArrayView< T > values) |
| Operator equal. | |
| void | operator+= (Arccore::ConstArrayView< T > values) |
| Operator plus equal. | |
| void | operator-= (Arccore::ConstArrayView< T > values) |
| Minus equal operator. | |
Private Attributes | |
| Arccore::ArrayView< T > & | m_values |
| The array of values. | |
| T | m_factor |
| The scale factor. | |
| Arccore::ConstArrayView< Arccore::Integer > | m_indexes |
| The array of indexes. | |
| Arccore::Integer | m_local_offset |
| The offset. | |
Tool to manipulate and scale a vector entry while building a vector.
| T | The data type of the vector |
| Indexer | The indexer |
Definition at line 98 of file VectorElement.h.
| Alien::MultVectorElementT< T, Indexer >::MultVectorElementT | ( | Arccore::ArrayView< T > | values, |
| T | factor, | ||
| Arccore::ConstArrayView< Arccore::Integer > | indexes, | ||
| Arccore::Integer | local_offset ) |
Constructor.
| [in] | values | The array values |
| [in] | factor | The factor to scale |
| [in] | indexes | The indexes to work on |
| [in] | local_offset | The offset |
Definition at line 87 of file VectorElementT.h.
References m_factor, m_indexes, m_local_offset, and m_values.
| void Alien::MultVectorElementT< T, Indexer >::operator+= | ( | Arccore::ConstArrayView< T > | values | ) |
Operator plus equal.
| [in] | values | The values to add |
Definition at line 114 of file VectorElementT.h.
References m_factor, m_indexes, m_local_offset, and m_values.
| void Alien::MultVectorElementT< T, Indexer >::operator-= | ( | Arccore::ConstArrayView< T > | values | ) |
Minus equal operator.
| [in] | values | The values to substract |
Definition at line 127 of file VectorElementT.h.
References m_factor, m_indexes, m_local_offset, and m_values.
| void Alien::MultVectorElementT< T, Indexer >::operator= | ( | Arccore::ConstArrayView< T > | values | ) |
Operator equal.
| [in] | values | The values to set |
Definition at line 101 of file VectorElementT.h.
References m_factor, m_indexes, m_local_offset, and m_values.
|
private |
The scale factor.
Definition at line 134 of file VectorElement.h.
Referenced by MultVectorElementT(), operator+=(), operator-=(), and operator=().
|
private |
The array of indexes.
Definition at line 136 of file VectorElement.h.
Referenced by MultVectorElementT(), operator+=(), operator-=(), and operator=().
|
private |
The offset.
Definition at line 138 of file VectorElement.h.
Referenced by MultVectorElementT(), operator+=(), operator-=(), and operator=().
|
private |
The array of values.
Definition at line 132 of file VectorElement.h.
Referenced by MultVectorElementT(), operator+=(), operator-=(), and operator=().