85 assert(ti.
get_etat() != ETATNONDEF) ;
98 const int* xi = ti.
t ;
102 for (
int i=0 ; i<taille ; i++) {
103 xo[i] =
abs( xi[i] ) ;
116 assert(ti.
get_etat() != ETATNONDEF) ;
126 const int* x = ti.
t ;
129 if ( x[i] > resu ) resu = x[i] ;
142 assert(ti.
get_etat() != ETATNONDEF) ;
152 const int* x = ti.
t ;
155 if ( x[i] < resu ) resu = x[i] ;
168 assert(ti.
get_etat() != ETATNONDEF) ;
175 const int* x = ti.
t ;
177 resu +=
abs( x[i] ) ;
192 assert(t1.
get_etat() != ETATNONDEF) ;
193 assert(t2.
get_etat() != ETATNONDEF) ;
195 int norm2 =
norme(t2) ;
196 int normdiff =
norme(t1-t2) ;
199 resu = double(normdiff) ;
202 resu = double(normdiff) / double(norm2) ;
216 assert(t1.
get_etat() != ETATNONDEF) ;
217 assert(t2.
get_etat() != ETATNONDEF) ;
220 int maxdiff =
max(
abs(t1-t2)) ;
223 resu = double(maxdiff) ;
226 resu = double(maxdiff) / double(max2) ;
int get_taille() const
Gives the total size (ie dim.taille )
Basic integer array class.
Tbl min(const Cmp &)
Minimum values of a Cmp in each domain.
Tbl diffrel(const Cmp &a, const Cmp &b)
Relative difference between two Cmp (norme version).
Dim_tbl dim
Number of dimensions, size,...
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.
int get_etat() const
Gives the logical state.
Cmp abs(const Cmp &)
Absolute value.
int * t
The array of int 's.
Tbl diffrelmax(const Cmp &a, const Cmp &b)
Relative difference between two Cmp (max version).