1
|
1 // pr-output.h -*- C++ -*- |
|
2 /* |
|
3 |
1884
|
4 Copyright (C) 1996 John W. Eaton |
1
|
5 |
|
6 This file is part of Octave. |
|
7 |
|
8 Octave is free software; you can redistribute it and/or modify it |
|
9 under the terms of the GNU General Public License as published by the |
|
10 Free Software Foundation; either version 2, or (at your option) any |
|
11 later version. |
|
12 |
|
13 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
16 for more details. |
|
17 |
|
18 You should have received a copy of the GNU General Public License |
|
19 along with Octave; see the file COPYING. If not, write to the Free |
1315
|
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
1
|
21 |
|
22 */ |
|
23 |
383
|
24 #if !defined (octave_pr_output_h) |
|
25 #define octave_pr_output_h 1 |
1
|
26 |
625
|
27 class ostream; |
1
|
28 |
1651
|
29 #include "oct-cmplx.h" |
|
30 |
1738
|
31 class ComplexMatrix; |
1
|
32 class Matrix; |
1738
|
33 class Range; |
1572
|
34 class charMatrix; |
1
|
35 |
625
|
36 extern void octave_print_internal (ostream& os, double d, |
|
37 int pr_as_read_syntax = 0); |
|
38 |
|
39 extern void octave_print_internal (ostream& os, const Matrix& m, |
|
40 int pr_as_read_syntax = 0); |
|
41 |
|
42 extern void octave_print_internal (ostream& os, const Complex& c, |
|
43 int pr_as_read_syntax = 0); |
|
44 |
|
45 extern void octave_print_internal (ostream& os, const ComplexMatrix& cm, |
|
46 int pr_as_read_syntax = 0); |
|
47 |
|
48 extern void octave_print_internal (ostream& os, const Range& r, |
|
49 int pr_as_read_syntax = 0); |
1
|
50 |
1572
|
51 extern void octave_print_internal (ostream& os, const charMatrix& chm, |
|
52 int pr_as_read_syntax = 0, |
|
53 int pr_as_string = 0); |
1355
|
54 |
1309
|
55 // XXX FIXME XXX -- these should probably be somewhere else. |
|
56 |
|
57 extern int any_element_is_inf_or_nan (const Matrix& a); |
|
58 |
|
59 extern int any_element_is_inf_or_nan (const ComplexMatrix& a); |
|
60 |
1
|
61 #endif |
|
62 |
|
63 /* |
|
64 ;;; Local Variables: *** |
|
65 ;;; mode: C++ *** |
|
66 ;;; page-delimiter: "^/\\*" *** |
|
67 ;;; End: *** |
|
68 */ |