MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / finalize

Method finalize

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

\internal * Must be called after inserting a set of non zero entries using the low level compressed API. */

Source from the content-addressed store, hash-verified

458 * Must be called after inserting a set of non zero entries using the low level compressed API.
459 */
460 inline void finalize() {
461 if (isCompressed()) {
462 StorageIndex size = internal::convert_index<StorageIndex>(m_data.size());
463 Index i = m_outerSize;
464 // find the last filled column
465 while (i >= 0 && m_outerIndex[i] == 0) --i;
466 ++i;
467 while (i <= m_outerSize) {
468 m_outerIndex[i] = size;
469 ++i;
470 }
471 }
472 }
473
474 // remove outer vectors j, j+1 ... j+num-1 and resize the matrix
475 void removeOuterVectors(Index j, Index num = 1) {

Callers 6

factorizeMethod · 0.80
runMethod · 0.80
assign_sparse_to_sparseFunction · 0.80
factorizeMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected