MCPcopy Create free account
hub / github.com/PX4/eigen / resize

Function resize

Eigen/src/SparseCore/SparseVector.h:223–227  ·  view source on GitHub ↗

Resizes the sparse vector to \a rows x \a cols * * This method is provided for compatibility with matrices. * For a column vector, \a cols must be equal to 1. * For a row vector, \a rows must be equal to 1. * * \sa resize(Index) */

Source from the content-addressed store, hash-verified

221 * \sa resize(Index)
222 */
223 void resize(Index rows, Index cols)
224 {
225 eigen_assert((IsColVector ? cols : rows)==1 && "Outer dimension must equal 1");
226 resize(IsColVector ? rows : cols);
227 }
228
229 /** Resizes the sparse vector to \a newSize
230 * This method deletes all entries, thus leaving an empty sparse vector

Callers 13

SparseVectorFunction · 0.70
SparseVector.hFile · 0.70
CompressedStorageMethod · 0.70
CompressedStorageClass · 0.70
appendMethod · 0.70
pruneMethod · 0.70
AmbiVectorMethod · 0.70
conservativeResizeMethod · 0.70
SparseMatrixMethod · 0.70
initAssignmentMethod · 0.70
resizeMethod · 0.50
resizeMethod · 0.50

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected