LAMA
lama::DenseUtilsInterface::Conversions< DenseValueType, CSRValueType > Struct Template Reference

Function pointer type definitions for conversion on dense storage. More...

#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 DenseValueType denseValues[], const DenseValueType eps)
 Convesion of dense matrix to CSR storage format.
typedef void(* setCSRValues )(DenseValueType denseValues[], const IndexType numRows, const IndexType numColumns, const IndexType csrIA[], const IndexType csrJA[], const CSRValueType csrValues[])
 Conversion of CSR format to dense matrix.

Detailed Description

template<typename DenseValueType, typename CSRValueType>
struct lama::DenseUtilsInterface::Conversions< DenseValueType, CSRValueType >

Function pointer type definitions for conversion on dense storage.


Member Typedef Documentation

template<typename DenseValueType , typename CSRValueType >
typedef void( * lama::DenseUtilsInterface::Conversions< DenseValueType, CSRValueType >::getCSRValues)(IndexType csrJA[], CSRValueType csrValues[], const IndexType csrIA[], const bool diagonalFlag, const IndexType numRows, const IndexType numColumns, const DenseValueType denseValues[], const DenseValueType eps)

Convesion of dense matrix to CSR storage format.

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]diagonalFlagif true the diagonal elements are also filled
[in]numRowsnumber of rows
[in]numColumnsnumber of columns
[in]denseValuessize is numRows x numColumns, array with all matrix elements of dense format
[in]epsis threshold when an element is to be considered as non-zero

Very important: the offsets in csrIA must correspond to the csrSizes computed by getCSRSizes.

template<typename DenseValueType , typename CSRValueType >
typedef void( * lama::DenseUtilsInterface::Conversions< DenseValueType, CSRValueType >::setCSRValues)(DenseValueType denseValues[], const IndexType numRows, const IndexType numColumns, const IndexType csrIA[], const IndexType csrJA[], const CSRValueType csrValues[])

Conversion of CSR format to dense matrix.


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