75 assert(ci.
get_etat() != ETATNONDEF) ;
100 assert(ci.
get_etat() != ETATNONDEF) ;
126 assert(ci.
get_etat() != ETATNONDEF) ;
150 assert(ci.
get_etat() != ETATNONDEF) ;
175 assert(ci.
get_etat() != ETATNONDEF) ;
182 co.
va = double(0.5) * M_PI ;
201 assert(ci.
get_etat() != ETATNONDEF) ;
226 assert(ci.
get_etat() != ETATNONDEF) ;
251 assert(ci.
get_etat() != ETATNONDEF) ;
276 assert(ci.
get_etat() != ETATNONDEF) ;
302 assert(ci.
get_etat() != ETATNONDEF) ;
306 cout <<
"Argument of log is ZERO in log(Cmp) !" << endl ;
328 assert(ci.
get_etat() != ETATNONDEF) ;
332 cout <<
"Argument of log10 is ZERO in log10(Cmp) !" << endl ;
354 assert(ci.
get_etat() != ETATNONDEF) ;
362 cout <<
"pow(Cmp, int) : ETATZERO^n with n <= 0 !" << endl ;
385 assert(ci.
get_etat() != ETATNONDEF) ;
393 cout <<
"pow(Cmp, double) : ETATZERO^x with x <= 0 !" << endl ;
416 assert(ci.
get_etat() != ETATNONDEF) ;
441 assert(ci.
get_etat() != ETATNONDEF) ;
443 Tbl resu( ci.
get_mp()->get_mg()->get_nzone() ) ;
451 resu =
max( ci.
va ) ;
464 assert(ci.
get_etat() != ETATNONDEF) ;
466 Tbl resu( ci.
get_mp()->get_mg()->get_nzone() ) ;
474 resu =
min( ci.
va ) ;
487 assert(ci.
get_etat() != ETATNONDEF) ;
489 Tbl resu( ci.
get_mp()->get_mg()->get_nzone() ) ;
510 assert(c1.
get_etat() != ETATNONDEF) ;
511 assert(c2.
get_etat() != ETATNONDEF) ;
513 int nz = c1.
get_mp()->get_mg()->get_nzone() ;
521 assert(normdiff.
get_etat() == ETATQCQ) ;
522 assert(norme2.
get_etat() == ETATQCQ) ;
525 for (
int l=0; l<nz; l++) {
526 if ( norme2(l) ==
double(0) ) {
527 resu.
set(l) = normdiff(l) ;
530 resu.
set(l) = normdiff(l) / norme2(l) ;
545 assert(c1.
get_etat() != ETATNONDEF) ;
546 assert(c2.
get_etat() != ETATNONDEF) ;
548 int nz = c1.
get_mp()->get_mg()->get_nzone() ;
557 assert(maxdiff.
get_etat() == ETATQCQ) ;
558 assert(max2.
get_etat() == ETATQCQ) ;
561 for (
int l=0; l<nz; l++) {
562 if ( max2(l) ==
double(0) ) {
563 resu.
set(l) = maxdiff(l) ;
566 resu.
set(l) = maxdiff(l) / max2(l) ;
Component of a tensorial field *** DEPRECATED : use class Scalar instead ***.
int get_etat() const
Returns the logical state.
Valeur va
The numerical value of the Cmp.
void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
const Map * get_mp() const
Returns the mapping.
int get_etat() const
Gives the logical state.
void annule_hard()
Sets the Tbl to zero in a hard way.
void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
double & set(int i)
Read/write of a particular element (index i) (1D case).
Cmp atan(const Cmp &)
Arctangent.
Cmp sqrt(const Cmp &)
Square root.
Cmp log10(const Cmp &)
Basis 10 logarithm.
Cmp exp(const Cmp &)
Exponential.
Cmp sin(const Cmp &)
Sine.
Tbl diffrel(const Cmp &a, const Cmp &b)
Relative difference between two Cmp (norme version).
Tbl norme(const Cmp &)
Sums of the absolute values of all the values of the Cmp in each domain.
Cmp acos(const Cmp &)
Arccosine.
Cmp asin(const Cmp &)
Arcsine.
Cmp racine_cubique(const Cmp &)
Cube root.
Tbl min(const Cmp &)
Minimum values of a Cmp in each domain.
Tbl max(const Cmp &)
Maximum values of a Cmp in each domain.
Cmp pow(const Cmp &, int)
Power .
Cmp cos(const Cmp &)
Cosine.
Cmp abs(const Cmp &)
Absolute value.
Tbl diffrelmax(const Cmp &a, const Cmp &b)
Relative difference between two Cmp (max version).
Cmp tan(const Cmp &)
Tangent.
Cmp log(const Cmp &)
Neperian logarithm.
Coord x
x coordinate centered on the grid