home *** CD-ROM | disk | FTP | other *** search
/ Power Programming / powerprogramming1994.iso / progtool / microcrn / issue_40.arc / DAIMS.ARC / VIMATRIX.HXX < prev    next >
Text File  |  1988-02-10  |  896b  |  29 lines

  1. /* 
  2. -*++ class vi_matrix: vorticity inversion matrix
  3. ** 
  4. ** (*++ history: 
  5. **     11 Dec 87    Bruce Eckel    Creation date
  6. ** ++*)
  7. ** 
  8. ** (*++ detailed: Automatically initialized voriticity inversion matrix for
  9. ** use in solving Chebyshev approximation of vorticity equations.  You must
  10. ** give it the value of Lambda (which is a constant for each problem) and the
  11. ** size of the square matrix.
  12. ** ++*)
  13. */
  14.  
  15. class Cheb_vector;
  16.  
  17. class vi_matrix : public matrix {
  18.   public:
  19.     vi_matrix(int n = 1, double lambda = 100);
  20.     int size() { return rows();}
  21.     double C(int i) { return i ? 1.0 : 2.0; } /* popular notation */
  22.     vi_matrix & operator=(vi_matrix & rval) 
  23.     {(matrix &)(*this) = (matrix &)rval; return (*this); }
  24.     vi_matrix & operator=(matrix & rval)
  25.     {(matrix &)(*this) = rval; return (*this); }
  26.     Cheb_vector & operator*(Cheb_vector & C);
  27. };
  28.  
  29.