58 ost <<
"Spectral expansion (Mtbl_cf, threshold for display = "
59 << thres <<
")" << endl ;
62 if (
etat == ETATNONDEF) {
63 ost <<
" state: UNDEFINED" << endl ;
67 if (
etat == ETATZERO) {
68 ost <<
" state: ZERO" << endl ;
72 ost.precision(precis);
73 ost.setf(ios::showpoint);
74 assert(
etat == ETATQCQ) ;
79 for (
int l=0; l<
nzone; l++) {
81 int nr =
mg->get_nr(l) ;
82 int nt =
mg->get_nt(l) ;
83 int np =
mg->get_np(l) ;
85 ost <<
" --------- Domain no. " << l <<
" ------- nr x nt x np = "
86 << nr <<
" x " << nt <<
" x " << np <<
" ------" << endl ;
87 const Tbl& tcf = *(
t[l]) ;
89 ost <<
"*** identically ZERO ***" << endl << endl ;
93 ost <<
"*** UNDEFINED ***" << endl << endl ;
96 assert( tcf.
get_etat() == ETATQCQ ) ;
98 for (
int k=0; k<=np; k++) {
99 base.name_phi(l, k, namep) ;
100 if (namep[0] ==
'u') continue ;
102 for (
int j=0; j<nt; j++) {
104 bool test_display = false ;
105 for (
int i=0; i<nr; i++) {
106 if (fabs( tcf(k, j, i) ) >= thres) test_display = true ;
109 base.name_theta(l, k, j, namet) ;
111 test_display = test_display && ( namet[0] !=
'u' ) ;
114 ost <<
"# " << namep <<
" " << namet <<
" :" ;
115 for (
int i=0; i<nr; i++) {
116 double cx = tcf(k, j, i) ;
117 if (fabs( cx ) >= thres) {
118 base.name_r(l, k, j, i, namer) ;
119 if (namer[0] ==
'u') continue ;
120 if ( (i>0) && (cx >= 0.) ) {
121 ost <<
" +" << setw(precis) << cx
125 ost <<
" " << setw(precis) << cx
void display(double threshold=1.e-7, int precision=4, ostream &ostr=cout) const
Prints the coefficients whose values are greater than a given threshold, as well as the corresponding...