CubbyFlow::VectorBinaryOp< T, E1, E2, Op > Class Template Reference
Vector expression for binary operation. More...
#include <Core/Vector/VectorExpression.h>
Inheritance diagram for CubbyFlow::VectorBinaryOp< T, E1, E2, Op >:
Public Member Functions | |
VectorBinaryOp (const E1 &u, const E2 &v) | |
Constructs binary operation expression for given input vector expressions. More... | |
size_t | size () const |
Size of the matrix. More... | |
T | operator[] (size_t i) const |
Returns vector element at i. More... | |
Public Member Functions inherited from CubbyFlow::VectorExpression< T, VectorBinaryOp< T, E1, E2, Op > > | |
size_t | size () const |
Size of the vector. More... | |
const VectorBinaryOp< 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::VectorBinaryOp< T, E1, E2, Op >
Vector expression for binary operation.
This vector expression represents a binary vector operation that takes two input vector expressions.
- Template Parameters
-
T - Real number type. E1 - First input expression type. E2 - Second input expression type. Op - Binary operation.
Constructor & Destructor Documentation
◆ VectorBinaryOp()
template<typename T , typename E1 , typename E2 , typename Op >
CubbyFlow::VectorBinaryOp< T, E1, E2, Op >::VectorBinaryOp | ( | const E1 & | u, |
const E2 & | v | ||
) |
Constructs binary operation expression for given input vector expressions.
Member Function Documentation
◆ operator[]()
template<typename T , typename E1 , typename E2 , typename Op >
T CubbyFlow::VectorBinaryOp< T, E1, E2, Op >::operator[] | ( | size_t | i | ) | const |
Returns vector element at i.
◆ size()
template<typename T , typename E1 , typename E2 , typename Op >
size_t CubbyFlow::VectorBinaryOp< T, E1, E2, Op >::size | ( | ) | const |
Size of the matrix.
The documentation for this class was generated from the following files:
- Core/Vector/VectorExpression.h
- Core/Vector/VectorExpression-Impl.h