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

Function resize

include/Eigen/src/SparseCore/SparseVector.h:225–228  ·  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

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

Callers 10

SparseVectorFunction · 0.70
SparseVector.hFile · 0.70
CompressedStorageMethod · 0.70
CompressedStorageClass · 0.70
appendMethod · 0.70
AmbiVectorMethod · 0.70
conservativeResizeMethod · 0.70
SparseMatrixMethod · 0.70
initAssignmentMethod · 0.70
assignDiagonalMethod · 0.70

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected