In the virtual memory version, the virtual matrix clsass is derived from the virtual vector. Thus, before the VMatrix is constructed, the constructor for a vdoub is called. The members of vdoub are private to the VMatrix class, so they are available to the member functions of VMatrix. The matrix class stores its elements in a virtual vector in row major order. That is, the rows of the matrix are stored sequentially in the vector. Access and storage of the matrix elements is achieved through vdoub::operator[].
A full set of functions is created for the matrix class. Assignment of matrices and elements is developed. Functions are also created for