MCPcopy Create free account
hub / github.com/XJTU-Graphics/dandelion / uncompress

Method uncompress

deps/Eigen/src/SparseCore/SparseMatrix.h:621–628  ·  view source on GitHub ↗

Turns the matrix into the uncompressed mode */

Source from the content-addressed store, hash-verified

619
620 /** Turns the matrix into the uncompressed mode */
621 void uncompress() {
622 if (!isCompressed()) return;
623 m_innerNonZeros = internal::conditional_aligned_new_auto<StorageIndex, true>(m_outerSize);
624 if (m_outerIndex[m_outerSize] == 0)
625 std::fill_n(m_innerNonZeros, m_outerSize, StorageIndex(0));
626 else
627 for (Index j = 0; j < m_outerSize; j++) m_innerNonZeros[j] = m_outerIndex[j + 1] - m_outerIndex[j];
628 }
629
630 /** Suppresses all nonzeros which are \b much \b smaller \b than \a reference under the tolerance \a epsilon */
631 void prune(const Scalar& reference, const RealScalar& epsilon = NumTraits<RealScalar>::dummy_precision()) {

Callers 4

analyzePatternMethod · 0.80
factorizeMethod · 0.80
deserializeMethod · 0.80
factorizeMethod · 0.80

Calls 1

fill_nFunction · 0.50

Tested by

no test coverage detected