Turns the matrix into the uncompressed mode */
| 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()) { |
no test coverage detected