60 #include "type_parite.h" 81 void _multxpun_1d_pas_prevu(
int nr,
double* tb,
double *res) {
82 cout <<
"multxpun pas prevu..." << endl ;
83 cout <<
" valeurs: " << tb <<
" " << res << endl ;
84 cout <<
"nr : " << nr << endl ;
93 void _multxpun_1d_r_jaco02 (
int nr,
double* tb,
double *xo)
97 for (
int i = 1 ; i < nr-1 ; i++) {
98 xo[i] = i*(i+2)/
double((i+1)*(2*i+1))*tb[i-1] + (i*i+3*i+3)/
double((i+1)*(i+2))*tb[i] + (i+1)*(i+3)/double((i+2)*(2*i+5))*tb[i+1] ;
100 xo[0] = 1.5*tb[0] + 0.3*tb[1] ;
101 xo[nr-1] = (nr*nr-1)/
double((nr)*(2*nr-1))*tb[nr-2] + (1+1/double((nr)*(nr+1)))*tb[nr-1] ;
109 void multxpun_1d(
int nr,
double **tb,
int base_r)
113 static void (*multxpun_1d[
MAX_BASE])(int,
double *,
double *) ;
120 multxpun_1d[i] = _multxpun_1d_pas_prevu ;
126 double *result =
new double[nr] ;
127 multxpun_1d[base_r](nr, *tb, result) ;
#define R_JACO02
base de Jacobi(0,2) ordinaire (finjac)
#define TRA_R
Translation en R, used for a bitwise shift (in hex)
#define MAX_BASE
Nombre max. de bases differentes.