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

Method finalize

include/Eigen/Eigen/src/SparseCore/SparseMatrix.h:457–473  ·  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

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