Access proxy for symmetric, square matrices with non-scalar element types.
More...
#include <NonScalarProxy.h >
Inherits blaze::Proxy< NonScalarProxy< MT >, ValueType_t< ElementType_t< MT > > > .
using RepresentedType = ValueType_t <ET>
Type of the represented matrix element.
using RawReference = Reference_t <ET>
Raw reference to the represented element.
void * operator& () const
Address operator (private & undefined).
MT & matrix_
Reference to the adapted matrix.
size_t i_
Row-index of the accessed matrix element.
size_t j_
Column-index of the accessed matrix element.
static constexpr bool rmm = IsRowMajorMatrix_v <MT>
Compile time flag indicating whether the given matrix type is a row-major matrix.
template<typename MT>
class blaze::NonScalarProxy< MT >
Access proxy for symmetric, square matrices with non-scalar element types.
The NonScalarProxy provides controlled access to the elements of a non-const symmetric matrix with non-scalar element type (e.g. vectors or matrices). It guarantees that a modification of element of the accessed matrix is also applied to element . The following example illustrates this by means of a sparse symmetric matrix with StaticVector elements:
Efficient implementation of a compressed matrix.
Definition CompressedMatrix.h:239
Efficient implementation of a fixed-sized vector.
Definition StaticVector.h:230
Matrix adapter for symmetric matrices.
Definition BaseTemplate.h:614
Base class for N-dimensional vectors.
Definition Vector.h:82
◆ NonScalarProxy()
Initialization constructor for a NonScalarProxy .
Parameters
matrix Reference to the adapted matrix.
i The row-index of the accessed matrix element.
j The column-index of the accessed matrix element.
◆ get()
Returning a reference to the accessed matrix element.
Returns Direct/raw reference to the accessed matrix element.
◆ operator RawReference()
Conversion to the represented matrix element.
Returns Direct/raw reference to the represented matrix element.
◆ operator%=()
template<typename MT>
template<typename T>
Modulo assignment to the represented matrix element.
Parameters
value The right-hand side value for the modulo operation.
Returns Reference to the assigned access proxy.
◆ operator*=()
template<typename MT>
template<typename T>
Multiplication assignment to the represented matrix element.
Parameters
value The right-hand side value for the multiplication.
Returns Reference to the assigned access proxy.
◆ operator+=()
template<typename MT>
template<typename T>
Addition assignment to the represented matrix element.
Parameters
value The right-hand side value to be added to the matrix element.
Returns Reference to the assigned access proxy.
◆ operator-=()
template<typename MT>
template<typename T>
Subtraction assignment to the represented matrix element.
Parameters
value The right-hand side value to be subtracted from the matrix element.
Returns Reference to the assigned access proxy.
◆ operator/=()
template<typename MT>
template<typename T>
Division assignment to the represented matrix element.
Parameters
value The right-hand side value for the division.
Returns Reference to the assigned access proxy.
◆ operator=() [1/4]
Copy assignment operator for NonScalarProxy .
Parameters
nsp Non-scalar access proxy to be copied.
Returns Reference to the assigned access proxy.
◆ operator=() [2/4]
template<typename MT>
template<typename T>
Assignment to the represented matrix element.
Parameters
value The new value of the matrix element.
Returns Reference to the assigned access proxy.
◆ operator=() [3/4]
template<typename MT>
template<typename T>
Initializer list assignment to the represented matrix element.
Parameters
list The list to be assigned to the matrix element.
Returns Reference to the assigned proxy.
◆ operator=() [4/4]
template<typename MT>
template<typename T>
Initializer list assignment to the represented matrix element.
Parameters
list The list to be assigned to the matrix element.
Returns Reference to the assigned proxy.
The documentation for this class was generated from the following file: