SpatialOps
SpatialOps::MatMatAdd< FieldT > Struct Template Reference

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

#include <MatVecOps.h>

Inheritance diagram for SpatialOps::MatMatAdd< FieldT >:
Collaboration diagram for SpatialOps::MatMatAdd< 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< MatMatAdd< 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...
 
static void gpu_launch (FieldMatrix< FieldT > *const result, const FieldMatrix< FieldT > &left, const FieldMatrix< FieldT > &right)
 Called by initiate evaluation. More...
 

Detailed Description

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

Add 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 615 of file MatVecOps.h.

Member Function Documentation

◆ operate()

template<typename FieldT >
void SpatialOps::MatMatAdd< 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 of
mat2const RightT& matrix with which to add the matrix from the right

< stride length has an appreciable effect on performance

Definition at line 1480 of file MatVecOps.h.


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