MCPcopy Create free account
hub / github.com/PX4/eigen / uncompress

Method uncompress

Eigen/src/SparseCore/SparseMatrix.h:495–504  ·  view source on GitHub ↗

Turns the matrix into the uncompressed mode */

Source from the content-addressed store, hash-verified

493
494 /** Turns the matrix into the uncompressed mode */
495 void uncompress()
496 {
497 if(m_innerNonZeros != 0)
498 return;
499 m_innerNonZeros = static_cast<StorageIndex*>(std::malloc(m_outerSize * sizeof(StorageIndex)));
500 for (Index i = 0; i < m_outerSize; i++)
501 {
502 m_innerNonZeros[i] = m_outerIndex[i+1] - m_outerIndex[i];
503 }
504 }
505
506 /** Suppresses all nonzeros which are \b much \b smaller \b than \a reference under the tolerence \a epsilon */
507 void prune(const Scalar& reference, const RealScalar& epsilon = NumTraits<RealScalar>::dummy_precision())

Callers 3

analyzePatternMethod · 0.80
factorizeMethod · 0.80
factorizeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected