17 namespace herm_detail {
131 return value == rhs.
value;
140 return value != rhs.
value;
184 template <
typename M>
value_type * raw_pointer_type
A raw pointer type.
Definition: hermitian_reference.hpp:26
bool operator!=(const hermitian_reference &rhs) const
Test if the hermitian reference value is not equals to the given value.
Definition: hermitian_reference.hpp:139
value_t< sub_type > value_type
The value contained in the expression.
Definition: dyn_matrix_view.hpp:31
value_type & sym_value
Reference to the symmetric value.
Definition: hermitian_reference.hpp:35
M expr_t
The hermitian matrix.
Definition: hermitian_reference.hpp:29
size_t j
The second index.
Definition: hermitian_reference.hpp:33
bool operator!=(const value_type &rhs) const
Test if the hermitian reference value is not equals to the given value.
Definition: hermitian_reference.hpp:157
hermitian_reference & operator/=(value_type rhs)
Divide by a new value the proxy reference.
Definition: hermitian_reference.hpp:104
hermitian_reference & operator=(const value_type &rhs)
Sets a new value to the proxy reference.
Definition: hermitian_reference.hpp:52
hermitian_reference & operator%=(value_type rhs)
Modulo by a new value the proxy reference.
Definition: hermitian_reference.hpp:117
Root namespace for the ETL library.
Definition: adapter.hpp:15
bool operator==(const hermitian_reference &rhs) const
Test if the hermitian reference value is equals to the given value.
Definition: hermitian_reference.hpp:130
M matrix_type
The matrix type.
Definition: hermitian_reference.hpp:24
value_type & raw_reference_type
A raw reference type.
Definition: hermitian_reference.hpp:27
A proxy representing a reference to a mutable element of an hermitian matrix.
Definition: hermitian_reference.hpp:23
typename matrix_type::value_type value_type
The value type.
Definition: hermitian_reference.hpp:25
std::complex< T > get_conj(const std::complex< T > &c)
Returns the conjugate of the given complex number.
Definition: complex.hpp:555
bool operator==(const value_type &rhs) const
Test if the hermitian reference value is equals to the given value.
Definition: hermitian_reference.hpp:148
value_type & value
Reference to the value.
Definition: hermitian_reference.hpp:34
hermitian_reference(matrix_type &matrix, size_t i, size_t j)
Constructs a new hermitian_reference.
Definition: hermitian_reference.hpp:43
matrix_type & matrix
Reference to the matrix.
Definition: hermitian_reference.hpp:31
hermitian_reference & operator+=(value_type rhs)
Adds a new value to the proxy reference.
Definition: hermitian_reference.hpp:65
friend std::ostream & operator<<(std::ostream &os, const hermitian_reference &ref)
Outputs an hermitian reference to the stream.
Definition: hermitian_reference.hpp:175
hermitian_reference & operator-=(value_type rhs)
Subtract a new value from the proxy reference.
Definition: hermitian_reference.hpp:78
hermitian_reference & operator*=(value_type rhs)
Multiply by a new value the proxy reference.
Definition: hermitian_reference.hpp:91
size_t i
The first index.
Definition: hermitian_reference.hpp:32
std::add_const_t< value_type > & const_raw_reference_type
A raw reference type.
Definition: hermitian_reference.hpp:28