qavrg 0.0.28
qavrgmatrix.h
Go to the documentation of this file.
00001 #ifndef QAVRGMATRIX_H
00002 #define QAVRGMATRIX_H
00003 
00004 #include <QObject>
00005 #include <QVector>
00006 
00007 class QavrgMatrix : public QObject
00008 {
00009   Q_OBJECT;
00010 
00011  public:
00012   QavrgMatrix(int nr, int nc, QObject *parent=0);
00013 
00014   void fill(double val);
00015   void resize(int nr, int nc);
00016   int size(int indx);
00017 
00018   double& operator()(int r, int c);
00019   QavrgMatrix& operator=(const QavrgMatrix& m);
00020 
00021   void dump();
00022 
00023   static void test();
00024   static void gaussj(QavrgMatrix &a, QVector<double> &b);
00025 
00026  private:
00027   QVector<double> m_Matrix;
00028   int             m_NRows;
00029   int             m_NCols;
00030   double          m_Dummy;
00031   static int      m_Errors;
00032 };
00033 
00034 #endif