next up previous
Next: Non-templated class version Up: MV++ Classes Previous: MV++ Classes

Templated class version

Templated MV++ vectors are denoted as MV_Vector<type> in ./include/mvvtp.h. Matrices are denoted as MV_ColMat<type> in ./include/mvmtp.h.

Typical use is illustrated by an example:

    #include "mvmtp.h"

    // ...

    class MyObj {  // ...  };

    MV_ColMat<MyObj> A(m, n);
    MV_Vector<MyObj> B(n), C(n);
The requirements of MyObj is that it must be form algebraic field. That is, the elements form a closure under the operations +, *, /, and -.



Roldan Pozo
Tue Nov 7 18:40:56 EST 1995