SpatialOps
SpatialOps::BinaryRetMatUnaryOp< OpT > Class Template Reference

Wraps RHS of a unary matrix operation. More...

#include <MatVecOps.h>

Public Types

typedef OpT::RhsT RhsT
 type of the rhs
 
typedef OpT::ResultT1 ResultT1
 type of the first lhs
 
typedef OpT::ResultT2 ResultT2
 type of the second lhs
 

Public Member Functions

 BinaryRetMatUnaryOp (const RhsT &mat)
 Construct an object from a rhs consisting of a single matrix. More...
 
void eval (ResultT1 *const result1, ResultT2 *const result2) const
 obtain a pointer to the multiple lhs and call the operator::launch method More...
 

Detailed Description

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

Wraps RHS of a unary matrix operation.

Author
Michael Brown
Date
December 2016
Template Parameters
OpTThe operation that this object represents

The behavior of this class mirrors that of MatVecOp, refer there for a more complete description. This object grabs pointers to the lhs and rhs and sends them to the operator where the actual calculation gets performed. This object accepts a single object on the rhs. This object accepts two objects on the lhs.

Definition at line 372 of file MatVecOps.h.

Constructor & Destructor Documentation

◆ BinaryRetMatUnaryOp()

template<typename OpT >
SpatialOps::BinaryRetMatUnaryOp< OpT >::BinaryRetMatUnaryOp ( const RhsT mat)
inline

Construct an object from a rhs consisting of a single matrix.

Template Parameters
OpTthe operation that will be performed
Parameters
matThe operand to the unary operation defined by OpT

Here we grab the pointer to the rhs element for use by the operator.

Definition at line 386 of file MatVecOps.h.

References SpatialOps::BinaryMatOp< OpT >::eval().

Here is the call graph for this function:

Member Function Documentation

◆ eval()

template<typename OpT >
void SpatialOps::BinaryRetMatUnaryOp< OpT >::eval ( ResultT1 *const  result1,
ResultT2 *const  result2 
) const

obtain a pointer to the multiple lhs and call the operator::launch method

Parameters
resultone ResultT1* const
resulttwo ResultT2* const
Returns
void

This is the interface for the lhs of the assignment operation. The pointers to the lhs and rhs operand are given to the operator using the OpT::launch method

Definition at line 1201 of file MatVecOps.h.


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