LAMA
lama::DIAUtilsInterface::Counting< ValueType > Struct Template Reference

#include <LAMAInterface.hpp>

Public Types

typedef void(* getCSRSizes )(IndexType csrSizes[], bool diagonalFlag, const IndexType numRows, const IndexType numColumns, const IndexType numDiagonals, const IndexType diaOffsets[], const ValueType diaValues[], const ValueType eps)
 Type definition of function pointer for counting sparse values in DIA storage.

template<typename ValueType>
struct lama::DIAUtilsInterface::Counting< ValueType >


Member Typedef Documentation

template<typename ValueType >
typedef void( * lama::DIAUtilsInterface::Counting< ValueType >::getCSRSizes)(IndexType csrSizes[], bool diagonalFlag, const IndexType numRows, const IndexType numColumns, const IndexType numDiagonals, const IndexType diaOffsets[], const ValueType diaValues[], const ValueType eps)

Type definition of function pointer for counting sparse values in DIA storage.

Parameters:
[out]csrSizesarray with number of non-zero entries in each row
[in]diagonalFlagif true count also zero diagonal elements
[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

Note: the diagonals might contain zero entries so the number of non-zero elements might be less than number of stored elements

  • csrSizes must have been allocated with at least numRows entries
  • diaOffsets has at least numDiagonals entries
  • diaValues has numDiagonals x max(numRows, numColumns) entries

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