SpatialOps
SpatialOps::MatMatSub< FieldT > Struct Template Reference

Sub a matix to a matrix on the right. More...

#include <MatVecOps.h>

Inheritance diagram for SpatialOps::MatMatSub< FieldT >:
Collaboration diagram for SpatialOps::MatMatSub< FieldT >:

Public Types

typedef FieldMatrix< FieldT > RightT
 right operand is a matrix
 
typedef FieldMatrix< FieldT > LeftT
 left operand is matrix
 
typedef FieldMatrix< FieldT > ResultT
 result is a matrix
 

Static Public Member Functions

static void operate (ResultT *const result, const LeftT &mat1, const RightT &mat2)
 Evaluate this operation using Nebo as the backend. More...
 
- Static Public Member Functions inherited from SpatialOps::MatOperation< MatMatSub< FieldT >, FieldMatrix< FieldT >, FieldMatrix< FieldT >, FieldMatrix< FieldT > >
static void cpu_launch (FieldMatrix< FieldT > *const result, const FieldMatrix< FieldT > &left, const FieldMatrix< FieldT > &right)
 Called to initiate evaluation. More...
 

Detailed Description

template<typename FieldT>
struct SpatialOps::MatMatSub< FieldT >

Sub a matix to a matrix on the right.

Performs an operation of the form result = mat1 - mat2. This operator uses the same stride ( 5 elements by default ) as the dot product. You may get better performance with varying stride lengths.

Definition at line 659 of file MatVecOps.h.

Member Function Documentation

◆ operate()

template<typename FieldT >
void SpatialOps::MatMatSub< FieldT >::operate ( ResultT *const  result,
const LeftT mat1,
const RightT mat2 
)
static

Evaluate this operation using Nebo as the backend.

Parameters
resultResultT* const destination vector for solution
mat1const LeftT& matrix on the left
mat2const RightT& matrix with which to subtract the matrix from the right

< stride length has an appreciable effect on performance

Definition at line 1524 of file MatVecOps.h.


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