LAMA
|
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. |
Function pointer type definitions for conversion on dense storage.
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.
[out] | csrJA | will contain the column indexes |
[out] | csrValues | will contain the matrix elements |
[in] | csrIA | is the array with the offsets (must already be available before) |
[in] | diagonalFlag | if true the diagonal elements are also filled |
[in] | numRows | number of rows |
[in] | numColumns | number of columns |
[in] | denseValues | size is numRows x numColumns, array with all matrix elements of dense format |
[in] | eps | is 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.
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.