GetNumRows
Get the number of rows in any matrixbase derived object (e.g. matrix, Matrix).
int GetNumRows( )const
Returns the number of rows in this matrixbase object.
EX1
void matrixbase_GetNumRows_ex1() { matrix mat(2,3) ={ {11, 12, 13}, {21, 22, 23} }; int iNumRows; iNumRows = mat.GetNumRows(); // Demonstration of GetNumRows printf(" Given matrix:\n" " 11 12 13\n" " 21 22 23\n"); printf(" The number of Rows = %d\n",iNumRows); }
matrixbase::GetNumCols, matrixbase::SetSize
origin.h