65 void mult2_xp1_1d(
int,
double**,
int) ;
107 for (indice =0; indice<
max_points; indice++) {
108 if (nr_done[indice] ==
npoints) {
112 if (nr_done[indice] == -1)
117 cerr <<
"Diff_x2dsdx::get_matrice() : no space left!!" <<
'\n' 118 <<
"The value of Diff.max_points must be increased..." << endl ;
126 double* vect =
new double[
npoints] ;
127 double* cres =
new double[
npoints] ;
128 for (
int i=0; i<
npoints; i++) {
134 mult2_xm1_1d_cheb(
npoints, vect, cres) ;
136 resu.
set(j,i) = cres[j] ;
141 resu.
set(j,i) = vect[j];
146 resu.
set(j,i) = vect[j] ;
157 ost <<
" x^2 d / dx " << endl ;
Base (abstract) class for 1D spectral differential operators in one domain.
virtual const Matrice & get_matrice() const
Returns the matrix associated with the operator.
static const int max_points
Maximal number of matrices stored per base.
Class for the elementary differential operator (see the base class Diff ).
Diff_x2dsdx(int base_r, int nr)
Standard constructor.
void operator=(const Diff_x2dsdx &)
Assignment to another Diff_x2dsdx.
#define R_JACO02
base de Jacobi(0,2) ordinaire (finjac)
int npoints
Number of coefficients.
#define TRA_R
Translation en R, used for a bitwise shift (in hex)
#define R_CHEBI
base de Cheb. impaire (rare) seulement
#define R_CHEBP
base de Cheb. paire (rare) seulement
int base
Base in radial direction.
virtual ostream & operator>>(ostream &) const
Operator >> (virtual function called by the operator <<).
virtual ~Diff_x2dsdx()
Destructor.
void operator=(const Diff &)
Assignment to another Diff.
double & set(int j, int i)
Read/write of a particuliar element.
void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
#define R_CHEBU
base de Chebychev ordinaire (fin), dev. en 1/r
void initialize()
Initializes arrays.
#define MAX_BASE
Nombre max. de bases differentes.