CubbyFlow::VectorScalarBinaryOp< T, E, Op > Class Template Reference

Vector expression for matrix-scalar binary operation. More...

#include <Core/Vector/VectorExpression.h>

Inheritance diagram for CubbyFlow::VectorScalarBinaryOp< T, E, Op >:
CubbyFlow::VectorExpression< T, VectorScalarBinaryOp< T, E, Op > >

Public Member Functions

 VectorScalarBinaryOp (const E &u, const T &v)
 Constructs a binary expression for given vector and scalar. More...
 
size_t size () const
 Size of the matrix. More...
 
operator[] (size_t i) const
 Returns vector element at i. More...
 
- Public Member Functions inherited from CubbyFlow::VectorExpression< T, VectorScalarBinaryOp< T, E, Op > >
size_t size () const
 Size of the vector. More...
 
const VectorScalarBinaryOp< T, E, Op > & operator() () const
 Returns actual implementation (the subclass). More...
 

Detailed Description

template<typename T, typename E, typename Op>
class CubbyFlow::VectorScalarBinaryOp< T, E, Op >

Vector expression for matrix-scalar binary operation.

This vector expression represents a binary matrix operation that takes one input vector expression and one scalar.

Template Parameters
T- Real number type.
E- Input expression type.
Op- Binary operation.

Constructor & Destructor Documentation

◆ VectorScalarBinaryOp()

template<typename T , typename E , typename Op >
CubbyFlow::VectorScalarBinaryOp< T, E, Op >::VectorScalarBinaryOp ( const E &  u,
const T &  v 
)

Constructs a binary expression for given vector and scalar.

Member Function Documentation

◆ operator[]()

template<typename T , typename E , typename Op >
T CubbyFlow::VectorScalarBinaryOp< T, E, Op >::operator[] ( size_t  i) const

Returns vector element at i.

◆ size()

template<typename T , typename E , typename Op >
size_t CubbyFlow::VectorScalarBinaryOp< T, E, Op >::size ( ) const

Size of the matrix.


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