SpatialOps
SpatialOps::MatVecOp< OpT > Class Template Reference

Wraps RHS of a Matrix - Vector operation. More...

#include <MatVecOps.h>

Inheritance diagram for SpatialOps::MatVecOp< OpT >:
Collaboration diagram for SpatialOps::MatVecOp< OpT >:

Public Member Functions

 MatVecOp (const typename BinaryMatOp< OpT >::LeftT &left, const typename BinaryMatOp< OpT >::RightT &right)
 Construct an object from a rhs. More...
 
- Public Member Functions inherited from SpatialOps::BinaryMatOp< OpT >
 BinaryMatOp (const LeftT &left, const RightT &right)
 Construct an object from a rhs. More...
 
void eval (ResultT *const result) const
 obtain a pointer to the lhs and call the operator::launch method More...
 

Additional Inherited Members

- Public Types inherited from SpatialOps::BinaryMatOp< OpT >
typedef OpT::LeftT LeftT
 the left operand on the right hand side
 
typedef OpT::RightT RightT
 the right operand on the right hand side
 
typedef OpT::ResultT ResultT
 the result on the left hand side
 

Detailed Description

template<typename OpT>
class SpatialOps::MatVecOp< OpT >

Wraps RHS of a Matrix - Vector operation.

Author
Nathan Yonkee
Date
July 2015
Template Parameters
OpTThe operation that this object represents

This object is built from the RHS information and uses the template parameter to do the assignment(s). The purpose is to overload result.operator =(RHS) for an intuitive interface, e.g. x = mat.solve(rhs), while allowing generic operations defined by the template parameter. It has a lifespan of one line, it is destroyed once the operator completes its work.

Definition at line 271 of file MatVecOps.h.

Constructor & Destructor Documentation

◆ MatVecOp()

template<typename OpT>
SpatialOps::MatVecOp< OpT >::MatVecOp ( const typename BinaryMatOp< OpT >::LeftT left,
const typename BinaryMatOp< OpT >::RightT right 
)
inline

Construct an object from a rhs.

Template Parameters
OpTthe operation that will be performed
Parameters
leftLeft operand, the type is defined by the OpT parameter
rightRight operand, the type is defined by the OpT parameter

Here we grab pointers to the rhs elements for use by the operator.

Definition at line 283 of file MatVecOps.h.


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