|
Blaze 3.9
|
Representation of two synchronized elements within the sparse Hermitian matrix. More...
#include <HermitianElement.h>
Inherits blaze::SparseElement.
Public Types | |
| using | ValueType = HermitianValue<MT> |
| The value type of the value-index-pair. | |
| using | IndexType = size_t |
| The index type of the value-index-pair. | |
| using | Reference = HermitianValue<MT> |
| Reference return type. | |
| using | ConstReference = const HermitianValue<MT> |
| Reference-to-const return type. | |
| using | Pointer = HermitianElement* |
| Pointer return type. | |
Public Member Functions | |
| template<typename T> | |
| HermitianElement< MT > & | operator= (const T &v) |
| Assignment to the Hermitian element. | |
| template<typename T> | |
| HermitianElement< MT > & | operator+= (const T &v) |
| Addition assignment to the Hermitian element. | |
| template<typename T> | |
| HermitianElement< MT > & | operator-= (const T &v) |
| Subtraction assignment to the Hermitian element. | |
| template<typename T> | |
| HermitianElement< MT > & | operator*= (const T &v) |
| Multiplication assignment to the Hermitian element. | |
| template<typename T> | |
| HermitianElement< MT > & | operator/= (const T &v) |
| Division assignment to the Hermitian element. | |
Constructors | |
| HermitianElement (IteratorType pos, MT *matrix, size_t idx) | |
| Constructor for the HermitianElement class. | |
Assignment operators | |
| template<typename T> | |
| HermitianElement & | operator= (const T &v) |
| template<typename T> | |
| HermitianElement & | operator+= (const T &v) |
| template<typename T> | |
| HermitianElement & | operator-= (const T &v) |
| template<typename T> | |
| HermitianElement & | operator*= (const T &v) |
| template<typename T> | |
| HermitianElement & | operator/= (const T &v) |
Access operators | |
| Pointer | operator-> () noexcept |
| Direct access to the Hermitian element. | |
Private Types | |
| using | ElementType = ElementType_t<MT> |
| Type of the represented matrix element. | |
| using | IteratorType = Iterator_t<MT> |
| Type of the underlying sparse matrix iterators. | |
Utility functions | |
| IteratorType | pos_ |
| Iterator to the current sparse Hermitian matrix element. | |
| MT * | matrix_ |
| The sparse matrix containing the iterator. | |
| size_t | index_ |
| The row/column index of the iterator. | |
| Reference | value () const |
| Access to the current value of the Hermitian element. | |
| IndexType | index () const |
| Access to the current index of the Hermitian element. | |
| void | sync () |
| Synchronization of the current sparse element to the according paired element. | |
| bool | isSynced () const |
| Checking if the current sparse element is in sync. | |
Representation of two synchronized elements within the sparse Hermitian matrix.
The HermitianElement class represents two synchronized elements (i.e. two value/index pairs) within a sparse Hermitian matrix. It guarantees that a modification of element 


|
inline |
Constructor for the HermitianElement class.
| pos | The initial position of the iterator. |
| matrix | The sparse matrix containing the iterator. |
| idx | The row/column index of the iterator. |
|
inline |
Access to the current index of the Hermitian element.
|
inlineprivate |
Checking if the current sparse element is in sync.
|
inline |
Multiplication assignment to the Hermitian element.
| v | The right-hand side value for the multiplication. |
| std::invalid_argument | Invalid assignment to diagonal matrix element. |
|
inline |
Addition assignment to the Hermitian element.
| v | The right-hand side value for the addition. |
| std::invalid_argument | Invalid assignment to diagonal matrix element. |
|
inline |
Subtraction assignment to the Hermitian element.
| v | The right-hand side value for the subtraction. |
| std::invalid_argument | Invalid assignment to diagonal matrix element. |
|
inlinenoexcept |
Direct access to the Hermitian element.
|
inline |
Division assignment to the Hermitian element.
| v | The right-hand side value for the division. |
| std::invalid_argument | Invalid assignment to diagonal matrix element. |
|
inline |
Assignment to the Hermitian element.
| v | The new value of the Hermitian element. |
| std::invalid_argument | Invalid assignment to diagonal matrix element. |
|
inlineprivate |
Synchronization of the current sparse element to the according paired element.
|
inline |
Access to the current value of the Hermitian element.