[LORENE] More ergonomic display of spectral coefficients and min, max, etc...

Eric Gourgoulhon eric.gourgoulhon at obspm.fr
Thu Feb 19 23:40:40 CET 2004

Dear all,

A new argument ("comment") has been introduced in the
virtual method Tensor::spectral_display to print
some header comment. The prototype of this method is now

virtual void spectral_display(const char* comment = 0x0,
	double threshold = 1.e-7, int precision = 4,
	ostream& ostr = cout) const ;

This shorten the code writting:
the two lines

cout << "Tensor a : " << endl ;
a.spectral_display() ;

can now be written simply as

a.spectral_display("Tensor a") ;

Note that the argument comment is optional.
The default value (0x0) means nothing is

Similarly, the argument comment has been
introduced in functions min, max, etc...
For instance:

maxabs(a, "Max of absolute value of a") ;

Bon code !


Eric Gourgoulhon
Laboratoire de l'Univers et de ses THeories (LUTH)
UMR 8102 du CNRS / Observatoire de Paris, F-92195 Meudon Cedex, France
tel: +33 (secretariat : +33
e-mail: Eric.Gourgoulhon/at/obspm.fr    WWW: http://www.luth.obspm.fr/

More information about the Lorene.list mailing list