23 #if ! defined (octave_pr_output_h) 24 #define octave_pr_output_h 1 26 #include "octave-config.h" 35 template <
typename T>
class Array;
179 extern OCTINTERP_API
void 181 bool d,
bool pr_as_read_syntax =
false);
183 extern OCTINTERP_API
void 185 bool pr_as_read_syntax =
false);
187 extern OCTINTERP_API
void 189 char c,
bool pr_as_read_syntax =
false);
193 bool pr_as_read_syntax =
false)
199 extern OCTINTERP_API
void 201 double d,
bool pr_as_read_syntax =
false);
205 bool pr_as_read_syntax =
false)
210 extern OCTINTERP_API
void 212 float d,
bool pr_as_read_syntax =
false);
216 bool pr_as_read_syntax =
false)
221 extern OCTINTERP_API
void 223 bool pr_as_read_syntax =
false,
224 int extra_indent = 0);
226 extern OCTINTERP_API
void 228 bool pr_as_read_syntax =
false,
229 int extra_indent = 0);
231 extern OCTINTERP_API
void 233 bool pr_as_read_syntax =
false,
234 int extra_indent = 0);
236 extern OCTINTERP_API
void 238 bool pr_as_read_syntax =
false,
239 int extra_indent = 0);
241 extern OCTINTERP_API
void 243 bool pr_as_read_syntax =
false,
244 int extra_indent = 0);
246 extern OCTINTERP_API
void 248 bool pr_as_read_syntax =
false,
249 int extra_indent = 0);
251 extern OCTINTERP_API
void 253 const Complex&
c,
bool pr_as_read_syntax =
false);
257 bool pr_as_read_syntax =
false)
262 extern OCTINTERP_API
void 268 bool pr_as_read_syntax =
false)
273 extern OCTINTERP_API
void 275 bool pr_as_read_syntax =
false,
276 int extra_indent = 0);
278 extern OCTINTERP_API
void 280 bool pr_as_read_syntax =
false,
281 int extra_indent = 0);
283 extern OCTINTERP_API
void 285 bool pr_as_read_syntax =
false,
286 int extra_indent = 0);
288 extern OCTINTERP_API
void 290 bool pr_as_read_syntax =
false,
291 int extra_indent = 0);
293 extern OCTINTERP_API
void 295 bool pr_as_read_syntax =
false,
296 int extra_indent = 0);
298 extern OCTINTERP_API
void 300 bool pr_as_read_syntax =
false,
301 int extra_indent = 0);
303 extern OCTINTERP_API
void 305 bool pr_as_read_syntax =
false,
306 int extra_indent = 0);
308 extern OCTINTERP_API
void 310 bool pr_as_read_syntax =
false,
311 int extra_indent = 0);
313 extern OCTINTERP_API
void 315 bool pr_as_read_syntax =
false,
316 int extra_indent = 0);
318 extern OCTINTERP_API
void 320 bool pr_as_read_syntax =
false,
321 int extra_indent = 0);
323 extern OCTINTERP_API
void 325 bool pr_as_read_syntax =
false,
326 int extra_indent = 0,
327 bool pr_as_string =
false);
329 extern OCTINTERP_API
void 331 bool pr_as_read_syntax =
false,
332 int extra_indent = 0,
333 bool pr_as_string =
false);
335 extern OCTINTERP_API
void 337 bool pr_as_read_syntax =
false,
338 int extra_indent = 0);
340 extern OCTINTERP_API
void 342 bool pr_as_read_syntax =
false,
343 int extra_indent = 0);
345 extern OCTINTERP_API
void 347 bool pr_as_read_syntax =
false,
348 int extra_indent = 0);
350 extern OCTINTERP_API
void 352 bool pr_as_read_syntax =
false,
353 int extra_indent = 0);
355 extern OCTINTERP_API
void 357 bool pr_as_read_syntax =
false,
358 int extra_indent = 0);
360 extern OCTINTERP_API
void 362 bool pr_as_read_syntax =
false,
363 int extra_indent = 0);
365 extern OCTINTERP_API
void 367 bool pr_as_read_syntax =
false,
368 int extra_indent = 0);
370 extern OCTINTERP_API
void 372 bool pr_as_read_syntax =
false,
373 int extra_indent = 0);
375 extern OCTINTERP_API
void 377 bool pr_as_read_syntax =
false,
378 int extra_indent = 0);
380 extern OCTINTERP_API
void 382 bool pr_as_read_syntax =
false,
383 int extra_indent = 0);
388 bool pr_as_read_syntax =
false);
390 inline OCTINTERP_API
void 392 bool pr_as_read_syntax =
false)
401 bool pr_as_read_syntax =
false);
403 inline OCTINTERP_API
void 405 bool pr_as_read_syntax =
false)
414 bool pr_as_read_syntax =
false);
416 inline OCTINTERP_API
void 418 bool pr_as_read_syntax =
false)
427 bool pr_as_read_syntax =
false);
429 inline OCTINTERP_API
void 431 bool pr_as_read_syntax =
false)
440 bool pr_as_read_syntax =
false);
442 inline OCTINTERP_API
void 444 bool pr_as_read_syntax =
false)
453 bool pr_as_read_syntax =
false);
455 inline OCTINTERP_API
void 457 bool pr_as_read_syntax =
false)
466 bool pr_as_read_syntax =
false);
468 inline OCTINTERP_API
void 470 bool pr_as_read_syntax =
false)
479 bool pr_as_read_syntax =
false);
481 inline OCTINTERP_API
void 483 bool pr_as_read_syntax =
false)
489 extern OCTINTERP_API
void 491 bool pr_as_read_syntax =
false,
492 int extra_indent = 0,
493 bool pr_as_string =
false);
497 const Cell& cell,
bool pr_as_read_syntax =
false,
498 int extra_indent = 0,
bool pr_as_string =
false)
504 extern OCTINTERP_API
void 506 bool pr_as_read_syntax =
false);
508 template <
typename T>
518 int exponent (
void)
const;
520 T mantissa (
void)
const;
523 : m_ff (ff), m_val (
val) { }
526 : m_ff (fdf.real_format ()), m_val (
val) { }
529 template <
typename T>
540 : m_ff (ff), m_val (
val) { }
543 : m_ff (fdf.real_format ()), m_val (
val) { }
546 template <
typename T>
557 : m_ff (ff), m_val (
val) { }
560 : m_ff (fdf.real_format ()), m_val (
val) { }
563 template <
typename T>
565 operator << (std::ostream& os, const pr_engineering_float<T>& pef);
567 template <
typename T>
569 operator << (std::ostream& os, const pr_formatted_float<T>& pff);
571 template <
typename T>
573 operator << (std::ostream& os, const pr_rational_float<T>& prf);
identity matrix If supplied two scalar respectively For allows like xample val
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE * f
bool Vprint_empty_dimensions
pr_engineering_float(const float_format &ff, T val)
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the you may append a you must also open the file in binary mode The parameter conversions are currently only supported for and permissions will be set to and then everything is written in a single operation This is very efficient and improves performance c
pr_rational_float(const float_format &ff, T val)
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE * d
float_display_format make_format(const std::complex< T > &)
pr_rational_float(const float_display_format &fdf, T val)
OCTINTERP_API void octave_print_internal(std::ostream &os, const float_display_format &fmt, bool d, bool pr_as_read_syntax=false)
pr_engineering_float(const float_display_format &fdf, T val)
N Dimensional Array with copy-on-write semantics.
std::complex< float > FloatComplex
std::complex< double > Complex
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string