57 #include "type_parite.h" 68 Matrice _prepa_helmholtz_plus_nondege_pas_prevu(
const Matrice &so) {
70 cout <<
"Unknown case for prepa_helmholtz_plus_nondege" << endl ;
81 Matrice _prepa_helmholtz_plus_nondege_r_cheb (
const Matrice &lap) {
86 Matrice res(n-non_dege, n-non_dege) ;
88 for (
int i=0 ; i<n-non_dege ; i++)
89 for (
int j=0 ; j<n-non_dege ; j++)
90 res.set(i, j) = lap(i, j+non_dege) ;
103 Matrice _prepa_helmholtz_plus_nondege_r_chebp (
const Matrice &lap) {
108 Matrice res(n-non_dege, n-non_dege) ;
110 for (
int i=0 ; i<n-non_dege ; i++)
111 for (
int j=0 ; j<n-non_dege ; j++)
112 res.set(i, j) = lap(i, j+non_dege) ;
124 Matrice prepa_helmholtz_plus_nondege(
const Matrice &ope,
int base_r) {
127 static Matrice (*prepa_helmholtz_plus_nondege[
MAX_BASE])
135 prepa_helmholtz_plus_nondege[i] =
136 _prepa_helmholtz_plus_nondege_pas_prevu ;
140 _prepa_helmholtz_plus_nondege_r_cheb ;
142 _prepa_helmholtz_plus_nondege_r_chebp ;
145 Matrice res(prepa_helmholtz_plus_nondege[base_r](ope)) ;
#define TRA_R
Translation en R, used for a bitwise shift (in hex)
#define R_CHEBP
base de Cheb. paire (rare) seulement
int get_dim(int i) const
Returns the dimension of the matrix.
#define MAX_BASE
Nombre max. de bases differentes.
#define R_CHEB
base de Chebychev ordinaire (fin)