|
Expression Templates Library (ETL)
|
A proxy representing a reference to a mutable element of a upper triangular matrix. More...
#include <upper_reference.hpp>
Public Types | |
| using | matrix_type = M |
| The matrix type. | |
| using | value_type = typename matrix_type::value_type |
| The value type. | |
| using | raw_pointer_type = value_type * |
| A raw pointer type. | |
| using | raw_reference_type = value_type & |
| A raw reference type. | |
| using | const_raw_reference_type = std::add_const_t< value_type > & |
| A raw reference type. | |
| using | expr_t = M |
| The upper triangular matrix. | |
Public Member Functions | |
| upper_reference (matrix_type &matrix, size_t i, size_t j) | |
| Constructs a new upper_reference. More... | |
| upper_reference & | operator= (const value_type &rhs) |
| Sets a new value to the proxy reference. More... | |
| upper_reference & | operator+= (value_type rhs) |
| Adds a new value to the proxy reference. More... | |
| upper_reference & | operator-= (value_type rhs) |
| Subtract a new value from the proxy reference. More... | |
| upper_reference & | operator*= (value_type rhs) |
| Multiply by a new value the proxy reference. More... | |
| upper_reference & | operator/= (value_type rhs) |
| Divide by a new value the proxy reference. More... | |
| upper_reference & | operator%= (value_type rhs) |
| Modulo by a new value the proxy reference. More... | |
| operator const_raw_reference_type & () const | |
| Casts the proxy reference to the raw reference type. More... | |
Public Attributes | |
| matrix_type & | matrix |
| Reference to the matrix. | |
| size_t | i |
| The first index. | |
| size_t | j |
| The second index. | |
| value_type & | value |
| Reference to the value. | |
A proxy representing a reference to a mutable element of a upper triangular matrix.
| M | The matrix type |
|
inline |
Constructs a new upper_reference.
| matrix | The source matrix |
| i | The index i of the first dimension |
| j | The index j of the second dimension |
|
inline |
Casts the proxy reference to the raw reference type.
|
inline |
Modulo by a new value the proxy reference.
| rhs | The new value |
|
inline |
Multiply by a new value the proxy reference.
| rhs | The new value |
|
inline |
Adds a new value to the proxy reference.
| rhs | The new value |
|
inline |
Subtract a new value from the proxy reference.
| rhs | The new value |
|
inline |
Divide by a new value the proxy reference.
| rhs | The new value |
|
inline |
Sets a new value to the proxy reference.
| rhs | The new value |
1.8.13