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