17 namespace diagonal_detail {
128 if (i == j || (value % rhs) ==
value_type(0)) {
value_type * raw_pointer_type
A raw pointer type.
Definition: diagonal_reference.hpp:27
value_type & value
Reference to the value.
Definition: diagonal_reference.hpp:35
diagonal_reference & operator*=(value_type rhs)
Multiply by a new value the proxy reference.
Definition: diagonal_reference.hpp:97
diagonal_reference & operator=(const value_type &rhs)
Sets a new value to the proxy reference.
Definition: diagonal_reference.hpp:52
value_t< sub_type > value_type
The value contained in the expression.
Definition: dyn_matrix_view.hpp:31
Exception that is thrown when an operation is made to a diagonal matrix that would render it non-diag...
Definition: diagonal_exception.hpp:23
diagonal_reference(matrix_type &matrix, size_t i, size_t j)
Constructs a new diagonal_reference.
Definition: diagonal_reference.hpp:43
diagonal_reference & operator%=(value_type rhs)
Modulo by a new value the proxy reference.
Definition: diagonal_reference.hpp:127
matrix_type & matrix
Reference to the matrix.
Definition: diagonal_reference.hpp:32
size_t j
The second index.
Definition: diagonal_reference.hpp:34
Root namespace for the ETL library.
Definition: adapter.hpp:15
diagonal_reference & operator+=(value_type rhs)
Adds a new value to the proxy reference.
Definition: diagonal_reference.hpp:67
M matrix_type
The matrix type.
Definition: diagonal_reference.hpp:25
size_t i
The first index.
Definition: diagonal_reference.hpp:33
value_type & raw_reference_type
A raw reference type.
Definition: diagonal_reference.hpp:28
M expr_t
The diagonal matrix.
Definition: diagonal_reference.hpp:30
diagonal_reference & operator-=(value_type rhs)
Subtract a new value from the proxy reference.
Definition: diagonal_reference.hpp:82
diagonal_reference & operator/=(value_type rhs)
Divide by a new value the proxy reference.
Definition: diagonal_reference.hpp:112
typename matrix_type::value_type value_type
The value type.
Definition: diagonal_reference.hpp:26
A proxy representing a reference to a mutable element of a diagonal matrix.
Definition: diagonal_reference.hpp:24
std::add_const_t< value_type > & const_raw_reference_type
A raw reference type.
Definition: diagonal_reference.hpp:29