67 assert(t1.
get_etat() != ETATNONDEF) ;
77 assert(t1.
get_etat() != ETATNONDEF) ;
88 (r.
t)[i] = - (t1.
t)[i] ;
103 assert(t1.
get_etat() != ETATNONDEF) ;
104 assert(t2.
get_etat() != ETATNONDEF) ;
106 for (
int i=0 ; i<t1.
get_ndim() ; i++) {
123 for (
int i=0 ; i<r.get_taille() ; i++) {
124 (r.t)[i] += (t2.
t)[i] ;
136 assert(t1.
get_etat() != ETATNONDEF) ;
170 assert(t1.
get_etat() != ETATNONDEF) ;
171 assert(t2.
get_etat() != ETATNONDEF) ;
173 for (
int i=0 ; i<t1.
get_ndim() ; i++) {
190 for (
int i=0 ; i<r.get_taille() ; i++) {
191 (r.t)[i] -= (t2.
t)[i] ;
204 assert(t1.
get_etat() != ETATNONDEF) ;
226 assert(t1.
get_etat() != ETATNONDEF) ;
251 assert(t1.
get_etat() != ETATNONDEF) ;
252 assert(t2.
get_etat() != ETATNONDEF) ;
254 for (
int i=0 ; i<t1.
get_ndim() ; i++) {
271 for (
int i=0 ; i<r.get_taille() ; i++) {
272 (r.t)[i] *= (t2.
t)[i] ;
284 assert(t1.
get_etat() != ETATNONDEF) ;
287 if ((t1.
get_etat() == ETATZERO) || ( x == 1 )) {
300 for (
int i=0 ; i<r.get_taille() ; i++) {
325 assert(
etat != ETATNONDEF) ;
326 assert(ti.
get_etat() != ETATNONDEF) ;
338 for (
int i=0 ; i<n ; i++) {
344 for (
int i=0 ; i<n ; i++) {
350 cout <<
"etat inconnu " << __FILE__ << endl ;
361 assert(
etat != ETATNONDEF) ;
373 for (
int i=0 ; i<n ; i++) {
379 for (
int i=0 ; i<n ; i++) {
385 cout <<
"etat inconnu " << __FILE__ << endl ;
397 assert(
etat != ETATNONDEF) ;
398 assert(ti.
get_etat() != ETATNONDEF) ;
410 for (
int i=0 ; i<n ; i++) {
416 for (
int i=0 ; i<n ; i++) {
422 cout <<
"etat inconnu " << __FILE__ << endl ;
433 assert(
etat != ETATNONDEF) ;
445 for (
int i=0 ; i<n ; i++) {
451 for (
int i=0 ; i<n ; i++) {
457 cout <<
"etat inconnu " << __FILE__ << endl ;
469 assert(
etat != ETATNONDEF) ;
470 assert(ti.
get_etat() != ETATNONDEF) ;
473 if (
etat == ETATZERO) {
482 assert(
etat == ETATQCQ) ;
493 assert(
etat != ETATNONDEF) ;
500 if (
etat == ETATZERO) {
505 assert(
etat == ETATQCQ) ;
int get_taille() const
Gives the total size (ie dim.taille )
int get_ndim() const
Gives the number of dimensions (ie dim.ndim )
Base_val operator*(const Base_val &, const Base_val &)
This operator is used when calling multiplication or division of Valeur .
void operator*=(const Itbl &)
Multiplication of this by a Itbl.
Basic integer array class.
void operator-=(const Itbl &)
Subtraction of a Itbl to this.
Dim_tbl dim
Number of dimensions, size,...
Cmp operator+(const Cmp &)
void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
int get_etat() const
Gives the logical state.
void operator+=(const Itbl &)
Addition of a Itbl to this.
int get_dim(int i) const
Gives the i th dimension (ie {tt dim.dim[i] )
Cmp operator-(const Cmp &)
- Cmp
int * t
The array of int 's.
void set_etat_zero()
Sets the logical state to ETATZERO (zero).
int etat
logical state (ETATNONDEF , ETATQCQ or ETATZERO ).