33 char tenseur_math_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Tenseur/tenseur_math.C,v 1.4 2014/10/13 08:53:42 j_novak Exp $" ;
72 assert (t.
get_etat() != ETATNONDEF) ;
80 res.set() =
exp( t() ) ;
91 assert (t.
get_etat() != ETATNONDEF) ;
96 res.set() =
log(t()) ;
106 assert (t.
get_etat() != ETATNONDEF) ;
111 res.set() =
sqrt(t()) ;
121 assert (t.
get_etat() != ETATNONDEF) ;
126 res.set() =
abs(t()) ;
136 assert (t.
get_etat() != ETATNONDEF) ;
143 res.set_etat_zero() ;
148 cout <<
"pow(Tenseur, double) : ETATZERO^x with x <= 0 !" << endl ;
153 res.set() =
pow( t(), a ) ;
165 assert (t.
get_etat() != ETATNONDEF) ;
172 res.set_etat_zero() ;
176 cout <<
"pow(Tenseur, int) : ETATZERO^n with n <= 0 !" << endl ;
181 res.set() =
pow( t(), n ) ;
double get_poids() const
Returns the weight.
Cmp log(const Cmp &)
Neperian logarithm.
Cmp exp(const Cmp &)
Exponential.
Cmp sqrt(const Cmp &)
Square root.
int get_valence() const
Returns the valence.
const Map * get_mp() const
Returns pointer on the mapping.
const Metrique * get_metric() const
Returns a pointer on the metric defining the conformal factor for tensor densities.
int get_etat() const
Returns the logical state.
Cmp pow(const Cmp &, int)
Power .
Cmp abs(const Cmp &)
Absolute value.
void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
Tensor handling *** DEPRECATED : use class Tensor instead ***.