LAMA
lama::OpenMPDIAUtils Class Reference

This class provides routines to converse DIA storage data to CSR storage data and vice versa. More...

#include <OpenMPDIAUtils.hpp>

Public Member Functions

template<typename DIAValueType >
void getCSRSizes (IndexType csrSizes[], bool diagonalFlag, const IndexType numRows, const IndexType numColumns, const IndexType numDiagonals, const IndexType diaOffsets[], const DIAValueType diaValues[], const DIAValueType eps)

Static Public Member Functions

template<typename ValueType >
static void getCSRSizes (IndexType csrSizes[], bool diagonalFlag, const IndexType numRows, const IndexType numColumns, const IndexType numDiagonals, const IndexType diaOffsets[], const ValueType diaValues[], const ValueType eps)
 OpenMP implementation for DIAUtilsInterface::Counting::getCSRSizes.
template<typename DIAValueType , typename CSRValueType >
static void getCSRValues (IndexType csrJA[], CSRValueType csrValues[], const IndexType csrIA[], const bool diagonalFlag, const IndexType numRows, const IndexType numColumns, const IndexType numDiagonals, const IndexType diaOffsets[], const DIAValueType diaValues[], const DIAValueType eps)
 OpenMP implementation for DIAUtilsInterface::Conversions::getCSRValues.
template<typename ValueType >
static void normalGEMV (ValueType result[], const ValueType alpha, const ValueType x[], const ValueType beta, const ValueType y[], const IndexType numRows, const IndexType numColumns, const IndexType numDiagonals, const IndexType diaOffsets[], const ValueType diaValues[], SyncToken *syncToken)
 Implementation for DIAUtilsInterface::Mult::normalGEMV.
template<typename ValueType >
static void jacobi (ValueType solution[], const IndexType numColumns, const IndexType numDiagonals, const IndexType diaOffset[], const ValueType diaValues[], const ValueType oldSolution[], const ValueType rhs[], const ValueType omega, const IndexType numRows, SyncToken *syncToken)
 Implementation for DIAUtilsInterface::Solver::jacobi.
static void setInterface (struct DIAUtilsInterface &DIAUtils)
 Routine that registers all routines of this class at the LAMA interface.

Private Member Functions

 LAMA_LOG_DECL_STATIC_LOGGER (logger)

Static Private Member Functions

template<typename ValueType >
static void normalGEMV (ValueType result[], const ValueType alpha, const ValueType x[], const ValueType beta, const ValueType y[], const IndexType numRows, const IndexType numColumns, const IndexType numDiagonals, const IndexType diaOffsets[], const ValueType diaValues[])

Detailed Description

This class provides routines to converse DIA storage data to CSR storage data and vice versa.


Member Function Documentation

template<typename ValueType >
static void lama::OpenMPDIAUtils::getCSRSizes ( IndexType  csrSizes[],
bool  diagonalFlag,
const IndexType  numRows,
const IndexType  numColumns,
const IndexType  numDiagonals,
const IndexType  diaOffsets[],
const ValueType  diaValues[],
const ValueType  eps 
) [static]
template<typename DIAValueType >
void lama::OpenMPDIAUtils::getCSRSizes ( IndexType  csrSizes[],
bool  diagonalFlag,
const IndexType  numRows,
const IndexType  numColumns,
const IndexType  numDiagonals,
const IndexType  diaOffsets[],
const DIAValueType  diaValues[],
const DIAValueType  eps 
)

References lama::abs().

template<typename DIAValueType , typename CSRValueType >
void lama::OpenMPDIAUtils::getCSRValues ( IndexType  csrJA[],
CSRValueType  csrValues[],
const IndexType  csrIA[],
const bool  diagonalFlag,
const IndexType  numRows,
const IndexType  numColumns,
const IndexType  numDiagonals,
const IndexType  diaOffsets[],
const DIAValueType  diaValues[],
const DIAValueType  eps 
) [static]
template<typename ValueType >
void lama::OpenMPDIAUtils::jacobi ( ValueType  solution[],
const IndexType  numColumns,
const IndexType  numDiagonals,
const IndexType  diaOffset[],
const ValueType  diaValues[],
const ValueType  oldSolution[],
const ValueType  rhs[],
const ValueType  omega,
const IndexType  numRows,
SyncToken syncToken 
) [static]
template<typename ValueType >
void lama::OpenMPDIAUtils::normalGEMV ( ValueType  result[],
const ValueType  alpha,
const ValueType  x[],
const ValueType  beta,
const ValueType  y[],
const IndexType  numRows,
const IndexType  numColumns,
const IndexType  numDiagonals,
const IndexType  diaOffsets[],
const ValueType  diaValues[],
SyncToken syncToken 
) [static]

Implementation for DIAUtilsInterface::Mult::normalGEMV.

References LAMA_THROWEXCEPTION.

Referenced by setInterface().

template<typename ValueType >
void lama::OpenMPDIAUtils::normalGEMV ( ValueType  result[],
const ValueType  alpha,
const ValueType  x[],
const ValueType  beta,
const ValueType  y[],
const IndexType  numRows,
const IndexType  numColumns,
const IndexType  numDiagonals,
const IndexType  diaOffsets[],
const ValueType  diaValues[] 
) [static, private]
void lama::OpenMPDIAUtils::setInterface ( struct DIAUtilsInterface DIAUtils) [static]

Routine that registers all routines of this class at the LAMA interface.

References getCSRSizes(), getCSRValues(), jacobi(), LAMA_INTERFACE_REGISTER_T, LAMA_INTERFACE_REGISTER_TT, and normalGEMV().

Referenced by lama::OpenMPInterface::OpenMPInterface().


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