LAMA
|
#include <LAMAInterface.hpp>
Public Types | |
typedef void(* | getCSRValues )(IndexType csrJA[], CSRValueType csrValues[], IndexType csrIA[], const IndexType numRow, const IndexType numValues, const IndexType cooIA[], const IndexType cooJA[], const COOValueType cooValues[]) |
Helper routine for conversion COO to CSR. | |
typedef void(* | setCSRValues )(IndexType cooIA[], IndexType cooJA[], COOValueType cooValues[], const IndexType numRows, const IndexType numDiagonals, const IndexType csrIA[], const IndexType csrJA[], const CSRValueType csrValues[], const bool csrDiagonalProperty) |
Conversion of CSR data to COO data. |
typedef void( * lama::COOUtilsInterface::Conversions< COOValueType, CSRValueType >::getCSRValues)(IndexType csrJA[], CSRValueType csrValues[], IndexType csrIA[], const IndexType numRow, const IndexType numValues, const IndexType cooIA[], const IndexType cooJA[], const COOValueType cooValues[]) |
Helper routine for conversion COO to CSR.
[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) |
Note: this routine preserves the diagonal property of the COO format
typedef void( * lama::COOUtilsInterface::Conversions< COOValueType, CSRValueType >::setCSRValues)(IndexType cooIA[], IndexType cooJA[], COOValueType cooValues[], const IndexType numRows, const IndexType numDiagonals, const IndexType csrIA[], const IndexType csrJA[], const CSRValueType csrValues[], const bool csrDiagonalProperty) |
Conversion of CSR data to COO data.
[in] | numRows | is number of rows |
[in] | numDiagonals | is number of diagonal elements to be stored at the beginning |
[in] | csrIA | is CSR offset array |
[in] | csrJA | is CSR column indexes, size is csrIA[numRows] |
[in] | csrValues | is CSR non-zero elements, size is csrIA[numRows] |
[in] | csrDiagonalProperty | is true if CSR data has diagonal property |
Be careful if COO data should have diagonal property, but CSR data has not