Every matrix class offerst the following methods for getting the dimesion and the type of the matrix:
- dim(nr,nc): returns the number of rows in nr and the number of columns in nc
- dim(): returns the dimension of the matrix when regarded as a vector of stacked columns, i.e., it returns rows * columns.
- rowdim(): returns the row dimension
- coldim(): returns the column dimension
- get_mtype(): retunrs the type of the matrix as specified by CH_Matrix_Classes::Mtype. This routine is typically only used by the internal debugging routines to specify which matrix class raised an error. Its existence is due to the fact, that the first versions of the implementation started long before the existence of runtime type identification procedures.