home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 June
/
SIMTEL_0692.cdr
/
msdos
/
microcrn
/
issue_40.arc
/
DAIMS.ARC
/
VIMATRIX.HXX
< prev
next >
Wrap
Text File
|
1988-02-10
|
896b
|
29 lines
/*
-*++ class vi_matrix: vorticity inversion matrix
**
** (*++ history:
** 11 Dec 87 Bruce Eckel Creation date
** ++*)
**
** (*++ detailed: Automatically initialized voriticity inversion matrix for
** use in solving Chebyshev approximation of vorticity equations. You must
** give it the value of Lambda (which is a constant for each problem) and the
** size of the square matrix.
** ++*)
*/
class Cheb_vector;
class vi_matrix : public matrix {
public:
vi_matrix(int n = 1, double lambda = 100);
int size() { return rows();}
double C(int i) { return i ? 1.0 : 2.0; } /* popular notation */
vi_matrix & operator=(vi_matrix & rval)
{(matrix &)(*this) = (matrix &)rval; return (*this); }
vi_matrix & operator=(matrix & rval)
{(matrix &)(*this) = rval; return (*this); }
Cheb_vector & operator*(Cheb_vector & C);
};