SpatialOps
SpatialOps::MatUnaryOp< 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::ResultT ResultT
 type of the lhs
 

Public Member Functions

 MatUnaryOp (const RhsT &mat)
 Construct an object from a rhs consisting of a single matrix. More...
 
void eval (ResultT *const result) const
 obtain a pointer to the lhs and call the operator::launch method More...
 

Detailed Description

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

Wraps RHS of a unary matrix operation.

Author
Nathan Yonkee
Date
July 2015
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.

Definition at line 329 of file MatVecOps.h.

Constructor & Destructor Documentation

◆ MatUnaryOp()

template<typename OpT>
SpatialOps::MatUnaryOp< OpT >::MatUnaryOp ( 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 342 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::MatUnaryOp< OpT >::eval ( ResultT *const  result) const

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

Parameters
resultResultT* 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 1150 of file MatVecOps.h.


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