Some other service functions are available. The first is
Loadmat() which allows the user to
enter a matrix interactively. To use this function to enter
the elements of a matrix, use code such as
A.Loadmat()
or A->Loadmat()
. The program will stop
and let you enter the matrix elements at the terminal.
DisplayMat() and InfoMat() display the matrix and the dimensions of the active matrices. You can add more checks as you want. Use the functions Setwid() and Setdec() to control the displayed width of the numbers and the number of decimals.
Writeb(char *fid, VMatrix &mat) doesn't really belong as member function, but needs access to some of the private members of the matrix class. It writes a matrix to disk in a binary form. It writes the data out in blocks, rather than elementwise. The fid is a file name to write to.