Lutest.h


// Lutest: simple test class for LU decomposition
//

#ifndef _lutest_h_

#include "Matrix.h"
#include "Vector.h"

class Lutest {

 private:
  
  int    size;   // number of equations
  Matrix a;      // the linear system
  Vector b;      // the right hand side

 public:

  Lutest(int n);              // set size,  initialize a and b

  Vector &solve(void);         // solve the linear system
  void check(Vector &x);       // check the result
};

#define _lutest_h_
#endif

previous    contents     next

Peter Junglas 20.6.2000