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

Vector expression for binary operation. More...

#include <jet/vector_expression.h>

Inheritance diagram for jet::VectorBinaryOp< T, E1, E2, Op >:
jet::VectorExpression< T, VectorBinaryOp< T, E1, E2, Op > >

Public Member Functions

 VectorBinaryOp (const E1 &u, const E2 &v)
 
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, 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 jet::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 >
jet::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 jet::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 jet::VectorBinaryOp< T, E1, E2, Op >::size ( ) const

Size of the matrix.


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