CubbyFlow::MatrixTriangular< T, E > Class Template Reference

Triangular matrix expression. More...

#include <Core/Matrix/MatrixExpression.h>

Inheritance diagram for CubbyFlow::MatrixTriangular< T, E >:
CubbyFlow::MatrixExpression< T, MatrixTriangular< T, E > >

Public Member Functions

 MatrixTriangular (const E &u, bool isUpper, bool isStrict)
 
Size2 size () const
 Size of the matrix. More...
 
size_t Rows () const
 Number of rows. More...
 
size_t Cols () const
 Number of columns. More...
 
operator() (size_t i, size_t j) const
 Returns matrix element at (i, j). More...
 
- Public Member Functions inherited from CubbyFlow::MatrixExpression< T, MatrixTriangular< T, E > >
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 MatrixTriangular< T, E > & operator() () const
 Returns actual implementation (the subclass). More...
 

Detailed Description

template<typename T, typename E>
class CubbyFlow::MatrixTriangular< T, E >

Triangular matrix expression.

This matrix expression represents a triangular matrix for given input matrix expression.

Template Parameters
TReal number type.
EInput expression type.

Constructor & Destructor Documentation

◆ MatrixTriangular()

template<typename T , typename E >
CubbyFlow::MatrixTriangular< T, E >::MatrixTriangular ( const E &  u,
bool  isUpper,
bool  isStrict 
)

Constructs triangular matrix expression for given input expression.

Parameters
isUpper- True for upper tri matrix, false for lower tri matrix.
isStrict- True for strictly upper/lower triangular matrix.

Member Function Documentation

◆ Cols()

template<typename T , typename E >
size_t CubbyFlow::MatrixTriangular< T, E >::Cols ( ) const

Number of columns.

◆ operator()()

template<typename T , typename E >
T CubbyFlow::MatrixTriangular< T, E >::operator() ( size_t  i,
size_t  j 
) const

Returns matrix element at (i, j).

◆ Rows()

template<typename T , typename E >
size_t CubbyFlow::MatrixTriangular< T, E >::Rows ( ) const

Number of rows.

◆ size()

template<typename T , typename E >
Size2 CubbyFlow::MatrixTriangular< T, E >::size ( ) const

Size of the matrix.


The documentation for this class was generated from the following files: