CubbyFlow::MatrixBinaryOp< T, E1, E2, Op > Class Template Reference

Matrix expression for binary operation. More...

#include <Core/Matrix/MatrixExpression.h>

Inheritance diagram for CubbyFlow::MatrixBinaryOp< T, E1, E2, Op >:
CubbyFlow::MatrixExpression< T, MatrixBinaryOp< T, E1, E2, Op > >

Public Member Functions

 MatrixBinaryOp (const E1 &u, const E2 &v)
 Constructs binary operation expression for given input matrix expressions. 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, MatrixBinaryOp< T, E1, E2, Op > >
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 MatrixBinaryOp< T, E1, E2, Op > & operator() () const
 Returns actual implementation (the subclass). More...
 

Detailed Description

template<typename T, typename E1, typename E2, typename Op>
class CubbyFlow::MatrixBinaryOp< T, E1, E2, Op >

Matrix expression for binary operation.

This matrix expression represents a binary matrix operation that takes two input matrix expressions.

Template Parameters
TReal number type.
E1First input expression type.
E2Second input expression type.
OpBinary operation.

Constructor & Destructor Documentation

◆ MatrixBinaryOp()

template<typename T , typename E1 , typename E2 , typename Op >
CubbyFlow::MatrixBinaryOp< T, E1, E2, Op >::MatrixBinaryOp ( const E1 &  u,
const E2 &  v 
)

Constructs binary operation expression for given input matrix expressions.

Member Function Documentation

◆ Cols()

template<typename T , typename E1 , typename E2 , typename Op >
size_t CubbyFlow::MatrixBinaryOp< T, E1, E2, Op >::Cols ( ) const

Number of columns.

◆ operator()()

template<typename T , typename E1 , typename E2 , typename Op >
T CubbyFlow::MatrixBinaryOp< T, E1, E2, Op >::operator() ( size_t  i,
size_t  j 
) const

Returns matrix element at (i, j).

◆ Rows()

template<typename T , typename E1 , typename E2 , typename Op >
size_t CubbyFlow::MatrixBinaryOp< T, E1, E2, Op >::Rows ( ) const

Number of rows.

◆ size()

template<typename T , typename E1 , typename E2 , typename Op >
Size2 CubbyFlow::MatrixBinaryOp< T, E1, E2, Op >::size ( ) const

Size of the matrix.


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