CubbyFlow::VectorUnaryOp< T, E, Op > Class Template Reference
Vector expression for unary operation. More...
#include <Core/Vector/VectorExpression.h>
Inheritance diagram for CubbyFlow::VectorUnaryOp< T, E, Op >:
Public Member Functions | |
VectorUnaryOp (const E &u) | |
Constructs unary operation expression for given input expression. 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, VectorUnaryOp< T, E, Op > > | |
size_t | size () const |
Size of the vector. More... | |
const VectorUnaryOp< T, E, Op > & | operator() () const |
Returns actual implementation (the subclass). More... | |
Detailed Description
template<typename T, typename E, typename Op>
class CubbyFlow::VectorUnaryOp< T, E, Op >
Vector expression for unary operation.
This matrix expression represents an unary vector operation that takes single input vector expression.
- Template Parameters
-
T - Real number type. E - Input expression type. Op - Unary operation.
Constructor & Destructor Documentation
◆ VectorUnaryOp()
template<typename T , typename E , typename Op >
CubbyFlow::VectorUnaryOp< T, E, Op >::VectorUnaryOp | ( | const E & | u | ) |
Constructs unary operation expression for given input expression.
Member Function Documentation
◆ operator[]()
template<typename T , typename E , typename Op >
T CubbyFlow::VectorUnaryOp< T, E, Op >::operator[] | ( | size_t | i | ) | const |
Returns vector element at i.
◆ size()
template<typename T , typename E , typename Op >
size_t CubbyFlow::VectorUnaryOp< T, E, 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