76 assert(ti.
get_etat() != ETATNONDEF) ;
93 for (
int l=0 ; l<nzone ; l++) {
94 *(to.t[l]) =
abs( *(ti.
t[l]) ) ;
110 assert(mti.
get_etat() != ETATNONDEF) ;
124 for (
int l=0 ; l<nz ; l++) {
125 resu.
set(l) =
max( *(mti.
t[l]) ) ;
139 assert(mti.
get_etat() != ETATNONDEF) ;
153 for (
int l=0 ; l<nz ; l++) {
154 resu.
set(l) =
min( *(mti.
t[l]) ) ;
168 assert(mti.
get_etat() != ETATNONDEF) ;
182 for (
int l=0 ; l<nz ; l++) {
197 assert(mt1.
get_etat() != ETATNONDEF) ;
198 assert(mt2.
get_etat() != ETATNONDEF) ;
208 assert(normdiff.
get_etat() == ETATQCQ) ;
209 assert(norme2.
get_etat() == ETATQCQ) ;
212 for (
int l=0; l<nz; l++) {
213 if ( norme2(l) ==
double(0) ) {
214 resu.
set(l) = normdiff(l) ;
217 resu.
set(l) = normdiff(l) / norme2(l) ;
232 assert(mt1.
get_etat() != ETATNONDEF) ;
233 assert(mt2.
get_etat() != ETATNONDEF) ;
243 assert(maxdiff.
get_etat() == ETATQCQ) ;
244 assert(max2.
get_etat() == ETATQCQ) ;
247 for (
int l=0; l<nz; l++) {
248 if ( max2(l) ==
double(0) ) {
249 resu.
set(l) = maxdiff(l) ;
252 resu.
set(l) = maxdiff(l) / max2(l) ;
double & set(int i)
Read/write of a particular element (index i) (1D case)
int get_etat() const
Gives the logical state.
Tbl min(const Cmp &)
Minimum values of a Cmp in each domain.
int get_etat() const
Returns the logical state.
Tbl diffrel(const Cmp &a, const Cmp &b)
Relative difference between two Cmp (norme version).
const Mg3d * get_mg() const
Returns the Mg3d on which the Mtbl_cf is defined.
void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
Tbl norme(const Cmp &)
Sums of the absolute values of all the values of the Cmp in each domain.
Tbl max(const Cmp &)
Maximum values of a Cmp in each domain.
void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
int get_nzone() const
Returns the number of zones (domains)
Cmp abs(const Cmp &)
Absolute value.
Coefficients storage for the multi-domain spectral method.
Base_val base
Bases of the spectral expansions.
void annule_hard()
Sets the Tbl to zero in a hard way.
Tbl ** t
Array (size nzone ) of pointers on the Tbl 's which contain the spectral coefficients in each domain...
Tbl diffrelmax(const Cmp &a, const Cmp &b)
Relative difference between two Cmp (max version).