LAMA
lama::DIAUtilsInterface::Conversions< DIAValueType, CSRValueType > Struct Template Reference

#include <LAMAInterface.hpp>

Public Types

typedef 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)
 Type definition of function pointer for conversion of DIA storage data to CSR data.

template<typename DIAValueType, typename CSRValueType>
struct lama::DIAUtilsInterface::Conversions< DIAValueType, CSRValueType >


Member Typedef Documentation

template<typename DIAValueType , typename CSRValueType >
typedef void( * lama::DIAUtilsInterface::Conversions< DIAValueType, CSRValueType >::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)

Type definition of function pointer for conversion of DIA storage data to CSR data.

Parameters:
[out]csrJAwill contain the column indexes
[out]csrValueswill contain the matrix elements
[in]csrIAis the array with the offsets (must already be available before)
[in]numRowsis the number of rows
[in]numColumnsis the number of columns
[in]numDiagonalsnumber of diagonals used in the DIA format
[in]diaOffsetsdiagonal offsets, size is numDiagonals
[in]diaValuesare stored values of the diagonals
[in]epsthreshold value when an element should be considered as zero
  • csrIA has numRows + 1 entries
  • csrJA and csrValues must have at least numValues entries, numValues = csrIA[numRows]

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