Matrix expression that exposes only the triangular part of an underlying matrix M selected by the policy Tri (Math::Lower, Math::UnitLower, Math::Upper or Math::UnitUpper).
More...
#include <MatrixAdapter.hpp>
template<typename M, typename Tri>
class CDPL::Math::TriangularAdapter< M, Tri >
Matrix expression that exposes only the triangular part of an underlying matrix M selected by the policy Tri (Math::Lower, Math::UnitLower, Math::Upper or Math::UnitUpper).
- Template Parameters
-
| M | The wrapped matrix type. |
| Tri | The triangular-view selection policy. |
◆ MatrixType
template<typename M , typename Tri >
◆ TriangularType
template<typename M , typename Tri >
The triangular-view selection policy.
◆ SizeType
template<typename M , typename Tri >
The size type used by the underlying matrix.
◆ DifferenceType
template<typename M , typename Tri >
The signed difference type used by the underlying matrix.
◆ ValueType
template<typename M , typename Tri >
The element value type of the underlying matrix.
◆ ConstReference
template<typename M , typename Tri >
Constant reference type to an element of the underlying matrix.
◆ Reference
template<typename M , typename Tri >
Mutable reference type (degrades to ConstReference when the wrapped matrix is const).
◆ MatrixClosureType
template<typename M , typename Tri >
Closure type used to store the wrapped matrix internally (mutable or const flavor).
◆ ConstClosureType
template<typename M , typename Tri >
Constant closure type used when this adapter appears inside another expression.
◆ ClosureType
template<typename M , typename Tri >
Closure type used when this adapter appears inside another expression.
◆ RangeType
template<typename M , typename Tri >
◆ TriangularAdapter()
template<typename M , typename Tri >
Constructs the adapter wrapping m.
- Parameters
-
| m | The matrix to be viewed through the triangular policy. |
◆ operator()()
template<typename M , typename Tri >
Returns the value of element (i, j) as seen through the triangular policy (off-policy entries return the appropriate fill value: zero or one).
- Parameters
-
| i | The zero-based row index. |
| j | The zero-based column index. |
- Returns
- The element value as defined by the triangular-view policy.
◆ getSize1()
template<typename M , typename Tri >
Returns the number of rows of the wrapped matrix.
- Returns
- The row count.
◆ getSize2()
template<typename M , typename Tri >
Returns the number of columns of the wrapped matrix.
- Returns
- The column count.
◆ getData() [1/2]
template<typename M , typename Tri >
Returns a reference to the wrapped matrix (via its stored closure).
- Returns
- A reference to the wrapped matrix closure.
◆ getData() [2/2]
template<typename M , typename Tri >
Returns a const reference to the wrapped matrix (via its stored closure).
- Returns
- A
const reference to the wrapped matrix closure.
◆ isEmpty()
template<typename M , typename Tri >
Tells whether the wrapped matrix is empty (zero rows or zero columns).
- Returns
true if the wrapped matrix is empty, and false otherwise.
◆ Lower
template<typename M , typename Tri >
◆ UnitLower
template<typename M , typename Tri >
◆ Upper
template<typename M , typename Tri >
◆ UnitUpper
template<typename M , typename Tri >
The documentation for this class was generated from the following file: