NDEVR
API Documentation
matrix_operations.h

Internal helper functions for block-wise matrix-vector products (axpy and atxpy). More...

#include <Eigen/Core>
Include dependency graph for matrix_operations.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  NDEVR
 The primary namespace for the NDEVR SDK.

Functions

template<typename MatrixType>
void internal::axpy (const MatrixType &A, const Eigen::Map< const Eigen::VectorX< g_type > > &x, int xoff, Eigen::Map< Eigen::VectorX< g_type > > &y, int yoff)
 Computes y[yoff..] += A * x[xoff..] for fixed-size blocks.

Detailed Description

Internal helper functions for block-wise matrix-vector products (axpy and atxpy).

Definition in file matrix_operations.h.

Function Documentation

◆ axpy()

template<typename MatrixType>
void internal::axpy ( const MatrixType & A,
const Eigen::Map< const Eigen::VectorX< g_type > > & x,
int xoff,
Eigen::Map< Eigen::VectorX< g_type > > & y,
int yoff )
inline

Computes y[yoff..] += A * x[xoff..] for fixed-size blocks.

Template Parameters
MatrixTypeThe Eigen matrix type.
Parameters
[in]AThe matrix block.
[in]xSource vector map.
[in]xoffOffset into the source vector.
[in,out]yDestination vector map.
[in]yoffOffset into the destination vector.

Definition at line 45 of file matrix_operations.h.