MCPcopy Create free account
hub / github.com/dblalock/bolt / isVector

Function isVector

cpp/src/external/eigen/src/SparseCore/SparseMatrixBase.h:173–173  ·  view source on GitHub ↗

\returns true if either the number of rows or the number of columns is equal to 1. * In other words, this function returns * \code rows()==1 || cols()==1 \endcode * \sa rows(), cols(), IsVectorAtCompileTime. */

Source from the content-addressed store, hash-verified

171 * \code rows()==1 || cols()==1 \endcode
172 * \sa rows(), cols(), IsVectorAtCompileTime. */
173 inline bool isVector() const { return rows()==1 || cols()==1; }
174 /** \returns the size of the storage major dimension,
175 * i.e., the number of columns for a columns major matrix, and the number of rows otherwise */
176 Index outerSize() const { return (int(Flags)&RowMajorBit) ? this->rows() : this->cols(); }

Callers

nothing calls this directly

Calls 2

rowsFunction · 0.70
colsFunction · 0.70

Tested by

no test coverage detected