CubbyFlow::MatrixConstant< T > Class Template Reference

Constant matrix expression. More...

#include <Core/Matrix/MatrixExpression.h>

Inheritance diagram for CubbyFlow::MatrixConstant< T >:
CubbyFlow::MatrixExpression< T, MatrixConstant< T > >

Public Member Functions

 MatrixConstant (size_t m, size_t n, const T &c)
 Constructs m x n constant matrix expression. 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...
 
operator() (size_t i, size_t j) const
 Returns matrix element at (i, j). More...
 
- Public Member Functions inherited from CubbyFlow::MatrixExpression< T, MatrixConstant< T > >
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 MatrixConstant< T > & operator() () const
 Returns actual implementation (the subclass). More...
 

Detailed Description

template<typename T>
class CubbyFlow::MatrixConstant< T >

Constant matrix expression.

This matrix expression represents a constant matrix.

Template Parameters
TReal number type.

Constructor & Destructor Documentation

◆ MatrixConstant()

template<typename T >
CubbyFlow::MatrixConstant< T >::MatrixConstant ( size_t  m,
size_t  n,
const T &  c 
)

Constructs m x n constant matrix expression.

Member Function Documentation

◆ Cols()

template<typename T >
size_t CubbyFlow::MatrixConstant< T >::Cols ( ) const

Number of columns.

◆ operator()()

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

Returns matrix element at (i, j).

◆ Rows()

template<typename T >
size_t CubbyFlow::MatrixConstant< T >::Rows ( ) const

Number of rows.

◆ size()

template<typename T >
Size2 CubbyFlow::MatrixConstant< T >::size ( ) const

Size of the matrix.


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