Template Function ADS::compressTriplets(std::size_t, std::size_t, std::size_t, const J *, const J *, const V *, I *, I *, V *, AssemblyWorkspace<I, V>&)
Defined in File SparseAssembly.h
Function Documentation
-
template<class I, class V, class J>
std::size_t ADS::compressTriplets(std::size_t nmajor, std::size_t nminor, std::size_t z, const J *major, const J *minor, const V *value, I *beg, I *ind, V *val, AssemblyWorkspace<I, V> &work) the compressed form, by major index, of the z triplets ( major[ k ] , minor[ k ] , value[ k ] ) of a matrix of nmajor x nminor, the values of equal places summed: beg[ 0 .
. nmajor ], and the minor indices and the values in ind and val, increasing in each major index; the number of the entries
- Pre:
the indices are below nmajor and nminor, beg has nmajor + 1 places, ind and val at least z, and z fits I