Jet  v1.3.3
Public Member Functions | List of all members
jet::VectorScalarBinaryOp< T, E, Op > Class Template Reference

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

#include <jet/vector_expression.h>

Inheritance diagram for jet::VectorScalarBinaryOp< T, E, Op >:
jet::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 jet::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 jet::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 >
jet::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 jet::VectorScalarBinaryOp< T, E, Op >::operator[] ( size_t  i) const

Returns vector element at i.

◆ size()

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

Size of the matrix.


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