MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / SparseMatrix

Function SparseMatrix

extensions/include/cuMat/src/SparseMatrix.h:95–99  ·  view source on GitHub ↗

* \brief Initializes this SparseMatrix with the given sparsity pattern and (if not fixed by the template argument) * with the given number of batches. * The coefficient array is allocated, but uninitialized. * * \param sparsityPattern the sparsity pattern * \param batches the number of batches */

Source from the content-addressed store, hash-verified

93 * \param batches the number of batches
94 */
95 SparseMatrix(const SparsityPattern<_SparseFlags>& sparsityPattern, Index batches = _Batches)
96 : Base(sparsityPattern, batches)
97 , A_(sparsityPattern.template allocateDataMatrix<_Scalar, _Batches>(batches))
98 {
99 }
100
101 /**
102 * \brief Direct access to the underlying data.

Callers 1

SparseMatrix.hFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected