71 #include "type_parite.h" 82 Matrice _prepa_helmholtz_minus_nondege_pas_prevu(
const Matrice &so) {
84 cout <<
"Unknown case for prepa_helmholtz_minus_nondege" << endl ;
94 Matrice _prepa_helmholtz_minus_nondege_r_cheb (
const Matrice &lap) {
99 Matrice res(n-non_dege, n-non_dege) ;
101 for (
int i=0 ; i<n-non_dege ; i++)
102 for (
int j=0 ; j<n-non_dege ; j++)
103 res.set(i, j) = lap(i, j+non_dege) ;
113 Matrice _prepa_helmholtz_minus_nondege_r_chebu (
const Matrice &lap) {
118 Matrice res(n-non_dege, n-non_dege) ;
120 for (
int i=0 ; i<n-non_dege ; i++)
121 for (
int j=0 ; j<n-non_dege ; j++)
122 res.set(i, j) = lap(i, j+non_dege) ;
131 Matrice _prepa_helmholtz_minus_nondege_r_chebp (
const Matrice &lap) {
136 Matrice res(n-non_dege, n-non_dege) ;
138 for (
int i=0 ; i<n-non_dege ; i++)
139 for (
int j=0 ; j<n-non_dege ; j++)
140 res.set(i, j) = lap(i, j+non_dege) ;
149 Matrice _prepa_helmholtz_minus_nondege_r_chebi (
const Matrice &lap) {
154 Matrice res(n-non_dege, n-non_dege) ;
156 for (
int i=0 ; i<n-non_dege ; i++)
157 for (
int j=0 ; j<n-non_dege ; j++)
158 res.set(i, j) = lap(i, j+non_dege) ;
169 Matrice prepa_helmholtz_minus_nondege(
const Matrice &ope,
int base_r) {
172 static Matrice (*prepa_helmholtz_minus_nondege[
MAX_BASE])
180 prepa_helmholtz_minus_nondege[i] =
181 _prepa_helmholtz_minus_nondege_pas_prevu ;
185 _prepa_helmholtz_minus_nondege_r_cheb ;
187 _prepa_helmholtz_minus_nondege_r_chebu ;
189 _prepa_helmholtz_minus_nondege_r_chebp ;
191 _prepa_helmholtz_minus_nondege_r_chebi ;
194 Matrice res(prepa_helmholtz_minus_nondege[base_r](ope)) ;
#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 get_dim(int i) const
Returns the dimension of the matrix.
#define R_CHEBU
base de Chebychev ordinaire (fin), dev. en 1/r
#define MAX_BASE
Nombre max. de bases differentes.
#define R_CHEB
base de Chebychev ordinaire (fin)