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

Method reserve

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

Preallocates \a reserveSize non zeros. * * Precondition: the matrix must be in compressed mode. */

Source from the content-addressed store, hash-verified

298 *
299 * Precondition: the matrix must be in compressed mode. */
300 inline void reserve(Index reserveSize)
301 {
302 eigen_assert(isCompressed() && "This function does not make sense in non compressed mode.");
303 m_data.reserve(reserveSize);
304 }
305
306 #ifdef EIGEN_PARSED_BY_DOXYGEN
307 /** Preallocates \a reserveSize[\c j] non zeros for each column (resp. row) \c j.

Callers 12

toSparseMethod · 0.45
toSparseMethod · 0.45
factorizeMethod · 0.45
reserveFunction · 0.45
SparseVector.hFile · 0.45
runMethod · 0.45
assign_sparse_to_sparseFunction · 0.45
reserveInnerVectorsMethod · 0.45
SparseMatrix.hFile · 0.45
analyzePatternMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected