MCPcopy Create free account
hub / github.com/TinyMPC/TinyMPC / uncompress

Method uncompress

include/Eigen/Eigen/src/SparseCore/SparseMatrix.h:624–632  ·  view source on GitHub ↗

Turns the matrix into the uncompressed mode */

Source from the content-addressed store, hash-verified

622
623 /** Turns the matrix into the uncompressed mode */
624 void uncompress()
625 {
626 if (!isCompressed()) return;
627 m_innerNonZeros = internal::conditional_aligned_new_auto<StorageIndex, true>(m_outerSize);
628 if (m_outerIndex[m_outerSize] == 0)
629 std::fill_n(m_innerNonZeros, m_outerSize, StorageIndex(0));
630 else
631 for (Index j = 0; j < m_outerSize; j++) m_innerNonZeros[j] = m_outerIndex[j + 1] - m_outerIndex[j];
632 }
633
634 /** Suppresses all nonzeros which are \b much \b smaller \b than \a reference under the tolerance \a epsilon */
635 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

no outgoing calls

Tested by

no test coverage detected