CubbyFlow::MatrixScalarBinaryOp< T, E, Op > Class Template Reference
Matrix expression for matrix-scalar binary operation. More...
#include <Core/Matrix/MatrixExpression.h>
Inheritance diagram for CubbyFlow::MatrixScalarBinaryOp< T, E, Op >:
Public Member Functions | |
MatrixScalarBinaryOp (const E &u, const T &v) | |
Constructs a binary expression for given matrix and scalar. 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... | |
T | operator() (size_t i, size_t j) const |
Returns matrix element at (i, j). More... | |
Public Member Functions inherited from CubbyFlow::MatrixExpression< T, MatrixScalarBinaryOp< T, E, 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 MatrixScalarBinaryOp< T, E, Op > & | operator() () const |
Returns actual implementation (the subclass). More... | |
Detailed Description
template<typename T, typename E, typename Op>
class CubbyFlow::MatrixScalarBinaryOp< T, E, Op >
Matrix expression for matrix-scalar binary operation.
This matrix expression represents a binary matrix operation that takes one input matrix expression and one scalar.
- Template Parameters
-
T Real number type. E Input expression type. Op Binary operation.
Constructor & Destructor Documentation
◆ MatrixScalarBinaryOp()
template<typename T , typename E , typename Op >
CubbyFlow::MatrixScalarBinaryOp< T, E, Op >::MatrixScalarBinaryOp | ( | const E & | u, |
const T & | v | ||
) |
Constructs a binary expression for given matrix and scalar.
Member Function Documentation
◆ Cols()
template<typename T , typename E , typename Op >
size_t CubbyFlow::MatrixScalarBinaryOp< T, E, Op >::Cols | ( | ) | const |
Number of columns.
◆ operator()()
template<typename T , typename E , typename Op >
T CubbyFlow::MatrixScalarBinaryOp< T, E, Op >::operator() | ( | size_t | i, |
size_t | j | ||
) | const |
Returns matrix element at (i, j).
◆ Rows()
template<typename T , typename E , typename Op >
size_t CubbyFlow::MatrixScalarBinaryOp< T, E, Op >::Rows | ( | ) | const |
Number of rows.
◆ size()
template<typename T , typename E , typename Op >
Size2 CubbyFlow::MatrixScalarBinaryOp< T, E, Op >::size | ( | ) | const |
Size of the matrix.
The documentation for this class was generated from the following files:
- Core/Matrix/MatrixExpression.h
- Core/Matrix/MatrixExpression-Impl.h