Jet
v1.3.3
|
Diagonal matrix expression. More...
#include <jet/matrix_expression.h>
Public Member Functions | |
MatrixDiagonal (const E &u, bool isDiag) | |
Size2 | size () const |
Size of the matrix. More... | |
size_t | rows () const |
Number of rows. More... | |
size_t | cols () const |
Number of columns. More... | |
T | operator() (size_t i, size_t j) const |
Returns matrix element at (i, j). More... | |
![]() | |
Size2 | size () const |
Size of the matrix. More... | |
size_t | rows () const |
Number of rows. More... | |
size_t | cols () const |
Number of columns. More... | |
const MatrixDiagonal< T, E > & | operator() () const |
Returns actual implementation (the subclass). More... | |
Diagonal matrix expression.
This matrix expression represents a diagonal matrix for given input matrix expression.
T | Real number type. |
E | Input expression type. |
jet::MatrixDiagonal< T, E >::MatrixDiagonal | ( | const E & | u, |
bool | isDiag | ||
) |
Constructs diagonal matrix expression for given input expression.
isDiag | - True for diagonal matrix, false for off-diagonal. |
size_t jet::MatrixDiagonal< T, E >::cols | ( | ) | const |
Number of columns.
T jet::MatrixDiagonal< T, E >::operator() | ( | size_t | i, |
size_t | j | ||
) | const |
Returns matrix element at (i, j).
size_t jet::MatrixDiagonal< T, E >::rows | ( | ) | const |
Number of rows.
Size2 jet::MatrixDiagonal< T, E >::size | ( | ) | const |
Size of the matrix.