18 #if defined(__TURBOC__)
69 r->
curx = disp_cursorcol+1;
70 r->
cury = disp_cursorrow+1;
75 #if !defined(_MSC_VER)
103 const int& nvar,
int scroll_flag,
int noprintx)
115 strcpy(format,
"%3d%9.5lf %12.4le");
116 strcpy(format1,
"%3d%9.4lf %12.4le");
117 strcpy(format2,
"%3d%9.3lf %12.4le");
118 strcpy(format3,
"%3d%9.2lf %12.4le");
120 #elif defined(_WIN32)
121 strcpy(format,
"%3d%9.5lf %12.4le");
122 strcpy(format1,
"%3d%9.4lf %12.4le");
123 strcpy(format2,
"%3d%9.3lf %12.4le");
124 strcpy(format3,
"%3d%9.2lf %12.4le");
127 strcpy(format,
"%3d%9.5lf %12.5le");
128 strcpy(format1,
"%3d%9.4lf %12.5le");
129 strcpy(format2,
"%3d%9.3lf %12.5le");
130 strcpy(format3,
"%3d%9.2lf %12.5le");
136 strcpy(colhead,
"Var Value Gradient ");
137 strcpy(colhead2,
"Var Value Gradient");
140 output_stream << colhead <<
"|"
147 int imax = nvar / cols;
151 const int headings = 3;
152 if (nvar % cols > 0) imax++;
153 if ( (scroll_flag == 0) && (imax > wmax-headings) )
154 imax = wmax - headings - 1;
158 for (
int i=1; i<=imax; i++)
160 for (
int j=0; j<cols; j++)
162 int ij = cols*(i-1)+(j+1);
168 output_stream << setw(3) << ij <<
' ' << setw(8) << setprecision(5) << std::fixed << x[ij] << setw(13) << setprecision(5) << std::scientific << g[ij];
170 else if (
fabs(x[ij])<1000)
173 output_stream << setw(3) << ij <<
' ' << setw(8) << setprecision(4) << std::fixed << x[ij] << setw(13) << setprecision(5) << std::scientific << g[ij];
175 else if (
fabs(x[ij])<10000)
178 output_stream << setw(3) << ij <<
' ' << setw(8) << setprecision(3) << std::fixed << x[ij] << setw(13) << setprecision(5) << std::scientific << g[ij];
183 output_stream << setw(3) << ij <<
' ' << setw(8) << setprecision(2) << std::fixed << x[ij] << setw(13) << setprecision(5) << std::scientific << g[ij];
187 output_stream <<
" |";
191 if (i<=imax) output_stream <<
endl;
202 const int& nvar,
int scroll_flag,
int noprintx)
222 strcpy(format,
"%3d%9.5lf ");
223 strcpy(format1,
"%3d%9.4lf ");
224 strcpy(format2,
"%3d%9.3lf ");
225 strcpy(format3,
"%3d%9.2lf ");
227 #elif defined(_MSC_VER)
228 strcpy(format,
"%3d%8.4lf ");
229 strcpy(format1,
"%3d%8.3lf ");
230 strcpy(format2,
"%3d%8.2lf ");
231 strcpy(format3,
"%3d%8.1lf ");
234 strcpy(format,
"%3d%9.5lf ");
235 strcpy(format1,
"%3d%9.4lf ");
236 strcpy(format2,
"%3d%9.3lf ");
237 strcpy(format3,
"%3d%9.2lf ");
243 strcpy(colhead,
"Var Value ");
246 output_stream << colhead <<
"| "
250 if (nvar % cols > 0) imax++;
251 if ( (scroll_flag == 0) && (imax > wmax-headings) )
252 imax = wmax - headings - 1;
256 for (i=1; i<=imax; i++)
258 for (j=0; j<cols; j++)
260 ij = cols*(i-1)+(j+1);
266 output_stream << setw(3) << ij <<
" " << x[ij];
268 else if (
fabs(x[ij])<1000)
271 output_stream << setw(3) << ij <<
" " << x[ij];
273 else if (
fabs(x[ij])<10000)
276 output_stream << setw(3) << ij <<
" " << x[ij];
281 output_stream << setw(3) << ij <<
" " << x[ij];
286 output_stream <<
" |";
290 if (i<=imax) output_stream <<
endl;
void fmmdisp(const dvector &x, const dvector &g, const int &nvar, int scroll_flag, int noprintx)
Description not yet available.
Description not yet available.
Vector of double precision numbers.
unsigned char screenwidth
df1_two_variable fabs(const df1_two_variable &x)
unsigned char screenheight
prnstream & endl(prnstream &)
void gotoxy(int x, int y)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Description not yet available.
std::ostream & get_output_stream()
void gettextinfo(struct text_info *r)