// ********************************************************************* // // a C++ class of a matrix // // In the case of overloaded mathematical operators, no size-checks are // performed to gain speed. // // Variables: // cv array of Complex objects // size length of the vector // // ********************************************************************* #include #include #include #include #include "DVector.h" #include "DMatrix.h" #define size 3 // ================================================================ DMatrix::DMatrix(int r,int c) { init(r,c); } // // ================================================================ DMatrix::DMatrix(double **x) { //cout<<"In DMatrix::DMatrix(double **x)\n"; init(size,size); getValue(x); } // ================================================================ DMatrix::DMatrix(double x[size][size]) { //cout<<"In DMatrix::DMatrix(double x[3][3])\n"; init(size,size); getValue(x); } // ================================================================ DMatrix::DMatrix(DVector &col1,DVector &col2, DVector &col3) { init(size,size); for (int i=0; i