26 char tenseur_compare_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Tenseur/tenseur_compare.C,v 1.3 2014/10/13 08:53:42 j_novak Exp $" ;
60 cout <<
"----------------------------------------------" << endl ;
61 cout <<
"Comparison of " << name <<
" : " << endl << endl ;
66 tmp.compare(comp, name) ;
74 Cmp tmp0 = (*this)(0) ;
75 Cmp tmp1 = (*this)(1) ;
76 Cmp tmp2 = (*this)(2) ;
78 tmp0.compare(comp0, name, 0) ;
79 tmp1.compare(comp1, name, 1) ;
80 tmp2.compare(comp2, name, 2) ;
84 Cmp comp00 = tens(0,0) ;
85 Cmp comp01 = tens(0,1) ;
86 Cmp comp02 = tens(0,2) ;
87 Cmp comp10 = tens(1,0) ;
88 Cmp comp11 = tens(1,1) ;
89 Cmp comp12 = tens(1,2) ;
90 Cmp comp20 = tens(2,0) ;
91 Cmp comp21 = tens(2,1) ;
92 Cmp comp22 = tens(2,2) ;
94 Cmp tmp00 = (*this)(0,0) ;
95 Cmp tmp01 = (*this)(0,1) ;
96 Cmp tmp02 = (*this)(0,2) ;
97 Cmp tmp10 = (*this)(1,0) ;
98 Cmp tmp11 = (*this)(1,1) ;
99 Cmp tmp12 = (*this)(1,2) ;
100 Cmp tmp20 = (*this)(2,0) ;
101 Cmp tmp21 = (*this)(2,1) ;
102 Cmp tmp22 = (*this)(2,2) ;
104 tmp00.compare(comp00, name, 0, 0) ;
105 tmp01.compare(comp01, name, 0, 1) ;
106 tmp02.compare(comp02, name, 0, 2) ;
107 tmp10.compare(comp10, name, 1, 0) ;
108 tmp11.compare(comp11, name, 1, 1) ;
109 tmp12.compare(comp12, name, 1, 2) ;
110 tmp20.compare(comp20, name, 2, 0) ;
111 tmp21.compare(comp21, name, 2, 1) ;
112 tmp22.compare(comp22, name, 2, 2) ;
void compare(const Tenseur &tens, const char *name)
Functions to compare the values of tensors.
Component of a tensorial field *** DEPRECATED : use class Scalar instead ***.
Radial mapping of rather general form.
int get_valence() const
Returns the valence.
const Base_vect_cart & get_bvect_cart() const
Returns the Cartesian basis associated with the coordinates (x,y,z) of the mapping, i.e.
Tensor handling *** DEPRECATED : use class Tensor instead ***.