annotate src/pr-output.h @ 8891:d077c590eb88

indicate diag & perm matrices on output
author Jaroslav Hajek <highegg@gmail.com>
date Sun, 01 Mar 2009 09:07:57 +0100
parents 4d90d21a9cd9
children eb63fbe60fab
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
1 /*
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
2
7017
a1dbe9d80eee [project @ 2007-10-12 21:27:11 by jwe]
jwe
parents: 7016
diff changeset
3 Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2002, 2003,
a1dbe9d80eee [project @ 2007-10-12 21:27:11 by jwe]
jwe
parents: 7016
diff changeset
4 2004, 2005, 2006, 2007 John W. Eaton
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
5
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
6 This file is part of Octave.
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
7
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
8 Octave is free software; you can redistribute it and/or modify it
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
9 under the terms of the GNU General Public License as published by the
7016
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6153
diff changeset
10 Free Software Foundation; either version 3 of the License, or (at your
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6153
diff changeset
11 option) any later version.
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
12
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
13 Octave is distributed in the hope that it will be useful, but WITHOUT
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
16 for more details.
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
17
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
18 You should have received a copy of the GNU General Public License
7016
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6153
diff changeset
19 along with Octave; see the file COPYING. If not, see
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6153
diff changeset
20 <http://www.gnu.org/licenses/>.
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
21
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
22 */
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
23
383
0b52c68ec81f [project @ 1994-03-09 21:19:44 by jwe]
jwe
parents: 240
diff changeset
24 #if !defined (octave_pr_output_h)
0b52c68ec81f [project @ 1994-03-09 21:19:44 by jwe]
jwe
parents: 240
diff changeset
25 #define octave_pr_output_h 1
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
26
3503
d14c483b3c12 [project @ 2000-02-01 04:06:07 by jwe]
jwe
parents: 3215
diff changeset
27 #include <iostream>
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
28
1651
e846e361a265 [project @ 1995-12-20 06:59:12 by jwe]
jwe
parents: 1572
diff changeset
29 #include "oct-cmplx.h"
e846e361a265 [project @ 1995-12-20 06:59:12 by jwe]
jwe
parents: 1572
diff changeset
30
4655
c8829691db47 [project @ 2003-11-24 21:24:37 by jwe]
jwe
parents: 4513
diff changeset
31 template <typename T> class ArrayN;
1738
bb9d00aa55fb [project @ 1996-01-12 10:56:22 by jwe]
jwe
parents: 1651
diff changeset
32 class ComplexMatrix;
7789
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
33 class FloatComplexMatrix;
8891
d077c590eb88 indicate diag & perm matrices on output
Jaroslav Hajek <highegg@gmail.com>
parents: 8625
diff changeset
34 class ComplexDiagMatrix;
d077c590eb88 indicate diag & perm matrices on output
Jaroslav Hajek <highegg@gmail.com>
parents: 8625
diff changeset
35 class FloatComplexDiagMatrix;
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
36 class ComplexNDArray;
7789
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
37 class FloatComplexNDArray;
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
38 class Matrix;
7789
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
39 class FloatMatrix;
8891
d077c590eb88 indicate diag & perm matrices on output
Jaroslav Hajek <highegg@gmail.com>
parents: 8625
diff changeset
40 class DiagMatrix;
d077c590eb88 indicate diag & perm matrices on output
Jaroslav Hajek <highegg@gmail.com>
parents: 8625
diff changeset
41 class FloatDiagMatrix;
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
42 class NDArray;
7789
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
43 class FloatNDArray;
1738
bb9d00aa55fb [project @ 1996-01-12 10:56:22 by jwe]
jwe
parents: 1651
diff changeset
44 class Range;
3215
bc3fdfe311a3 [project @ 1998-11-10 14:06:21 by jwe]
jwe
parents: 2920
diff changeset
45 class boolMatrix;
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
46 class boolNDArray;
1572
0d9e10d10bd7 [project @ 1995-10-19 04:31:30 by jwe]
jwe
parents: 1355
diff changeset
47 class charMatrix;
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
48 class charNDArray;
8891
d077c590eb88 indicate diag & perm matrices on output
Jaroslav Hajek <highegg@gmail.com>
parents: 8625
diff changeset
49 class PermMatrix;
3928
e8627dc4bdf2 [project @ 2002-05-03 19:56:01 by jwe]
jwe
parents: 3523
diff changeset
50 class Cell;
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
51
4901
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
52 #include "intNDArray.h"
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
53 #include "oct-inttypes.h"
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
54
7789
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
55
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
56 extern OCTINTERP_API void
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
57 octave_print_internal (std::ostream& os, bool d,
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
58 bool pr_as_read_syntax = false);
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
59
6109
c68896f193e3 [project @ 2006-10-27 02:16:18 by jwe]
jwe
parents: 5759
diff changeset
60 extern OCTINTERP_API void
3523
b80bbb43a1a9 [project @ 2000-02-02 10:25:52 by jwe]
jwe
parents: 3503
diff changeset
61 octave_print_internal (std::ostream& os, double d,
2920
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
62 bool pr_as_read_syntax = false);
625
9cdb3844008b [project @ 1994-08-19 02:01:31 by jwe]
jwe
parents: 383
diff changeset
63
6109
c68896f193e3 [project @ 2006-10-27 02:16:18 by jwe]
jwe
parents: 5759
diff changeset
64 extern OCTINTERP_API void
7789
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
65 octave_print_internal (std::ostream& os, float d,
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
66 bool pr_as_read_syntax = false);
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
67
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
68 extern OCTINTERP_API void
3523
b80bbb43a1a9 [project @ 2000-02-02 10:25:52 by jwe]
jwe
parents: 3503
diff changeset
69 octave_print_internal (std::ostream& os, const Matrix& m,
2920
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
70 bool pr_as_read_syntax = false,
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
71 int extra_indent = 0);
625
9cdb3844008b [project @ 1994-08-19 02:01:31 by jwe]
jwe
parents: 383
diff changeset
72
6109
c68896f193e3 [project @ 2006-10-27 02:16:18 by jwe]
jwe
parents: 5759
diff changeset
73 extern OCTINTERP_API void
8625
4d90d21a9cd9 special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents: 7789
diff changeset
74 octave_print_internal (std::ostream& os, const DiagMatrix& m,
4d90d21a9cd9 special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents: 7789
diff changeset
75 bool pr_as_read_syntax = false,
4d90d21a9cd9 special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents: 7789
diff changeset
76 int extra_indent = 0);
4d90d21a9cd9 special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents: 7789
diff changeset
77
4d90d21a9cd9 special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents: 7789
diff changeset
78 extern OCTINTERP_API void
7789
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
79 octave_print_internal (std::ostream& os, const FloatMatrix& m,
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
80 bool pr_as_read_syntax = false,
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
81 int extra_indent = 0);
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
82
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
83 extern OCTINTERP_API void
8625
4d90d21a9cd9 special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents: 7789
diff changeset
84 octave_print_internal (std::ostream& os, const FloatDiagMatrix& m,
4d90d21a9cd9 special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents: 7789
diff changeset
85 bool pr_as_read_syntax = false,
4d90d21a9cd9 special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents: 7789
diff changeset
86 int extra_indent = 0);
4d90d21a9cd9 special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents: 7789
diff changeset
87
4d90d21a9cd9 special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents: 7789
diff changeset
88 extern OCTINTERP_API void
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
89 octave_print_internal (std::ostream& os, const NDArray& nda,
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
90 bool pr_as_read_syntax = false,
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
91 int extra_indent = 0);
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
92
6109
c68896f193e3 [project @ 2006-10-27 02:16:18 by jwe]
jwe
parents: 5759
diff changeset
93 extern OCTINTERP_API void
7789
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
94 octave_print_internal (std::ostream& os, const FloatNDArray& nda,
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
95 bool pr_as_read_syntax = false,
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
96 int extra_indent = 0);
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
97
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
98 extern OCTINTERP_API void
3523
b80bbb43a1a9 [project @ 2000-02-02 10:25:52 by jwe]
jwe
parents: 3503
diff changeset
99 octave_print_internal (std::ostream& os, const Complex& c,
2920
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
100 bool pr_as_read_syntax = false);
625
9cdb3844008b [project @ 1994-08-19 02:01:31 by jwe]
jwe
parents: 383
diff changeset
101
6109
c68896f193e3 [project @ 2006-10-27 02:16:18 by jwe]
jwe
parents: 5759
diff changeset
102 extern OCTINTERP_API void
7789
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
103 octave_print_internal (std::ostream& os, const FloatComplex& c,
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
104 bool pr_as_read_syntax = false);
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
105
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
106 extern OCTINTERP_API void
3523
b80bbb43a1a9 [project @ 2000-02-02 10:25:52 by jwe]
jwe
parents: 3503
diff changeset
107 octave_print_internal (std::ostream& os, const ComplexMatrix& cm,
2920
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
108 bool pr_as_read_syntax = false,
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
109 int extra_indent = 0);
625
9cdb3844008b [project @ 1994-08-19 02:01:31 by jwe]
jwe
parents: 383
diff changeset
110
6109
c68896f193e3 [project @ 2006-10-27 02:16:18 by jwe]
jwe
parents: 5759
diff changeset
111 extern OCTINTERP_API void
8625
4d90d21a9cd9 special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents: 7789
diff changeset
112 octave_print_internal (std::ostream& os, const ComplexDiagMatrix& cm,
4d90d21a9cd9 special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents: 7789
diff changeset
113 bool pr_as_read_syntax = false,
4d90d21a9cd9 special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents: 7789
diff changeset
114 int extra_indent = 0);
4d90d21a9cd9 special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents: 7789
diff changeset
115
4d90d21a9cd9 special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents: 7789
diff changeset
116 extern OCTINTERP_API void
7789
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
117 octave_print_internal (std::ostream& os, const FloatComplexMatrix& cm,
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
118 bool pr_as_read_syntax = false,
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
119 int extra_indent = 0);
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
120
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
121 extern OCTINTERP_API void
8625
4d90d21a9cd9 special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents: 7789
diff changeset
122 octave_print_internal (std::ostream& os, const FloatComplexDiagMatrix& cm,
4d90d21a9cd9 special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents: 7789
diff changeset
123 bool pr_as_read_syntax = false,
4d90d21a9cd9 special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents: 7789
diff changeset
124 int extra_indent = 0);
4d90d21a9cd9 special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents: 7789
diff changeset
125
4d90d21a9cd9 special printing of diagonal matrices
Jaroslav Hajek <highegg@gmail.com>
parents: 7789
diff changeset
126 extern OCTINTERP_API void
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
127 octave_print_internal (std::ostream& os, const ComplexNDArray& nda,
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
128 bool pr_as_read_syntax = false,
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
129 int extra_indent = 0);
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
130
6109
c68896f193e3 [project @ 2006-10-27 02:16:18 by jwe]
jwe
parents: 5759
diff changeset
131 extern OCTINTERP_API void
7789
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
132 octave_print_internal (std::ostream& os, const FloatComplexNDArray& nda,
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
133 bool pr_as_read_syntax = false,
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
134 int extra_indent = 0);
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
135
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7215
diff changeset
136 extern OCTINTERP_API void
8891
d077c590eb88 indicate diag & perm matrices on output
Jaroslav Hajek <highegg@gmail.com>
parents: 8625
diff changeset
137 octave_print_internal (std::ostream& os, const PermMatrix& m,
d077c590eb88 indicate diag & perm matrices on output
Jaroslav Hajek <highegg@gmail.com>
parents: 8625
diff changeset
138 bool pr_as_read_syntax = false,
d077c590eb88 indicate diag & perm matrices on output
Jaroslav Hajek <highegg@gmail.com>
parents: 8625
diff changeset
139 int extra_indent = 0);
d077c590eb88 indicate diag & perm matrices on output
Jaroslav Hajek <highegg@gmail.com>
parents: 8625
diff changeset
140
d077c590eb88 indicate diag & perm matrices on output
Jaroslav Hajek <highegg@gmail.com>
parents: 8625
diff changeset
141 extern OCTINTERP_API void
3523
b80bbb43a1a9 [project @ 2000-02-02 10:25:52 by jwe]
jwe
parents: 3503
diff changeset
142 octave_print_internal (std::ostream& os, const Range& r,
2920
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
143 bool pr_as_read_syntax = false,
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
144 int extra_indent = 0);
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
145
6109
c68896f193e3 [project @ 2006-10-27 02:16:18 by jwe]
jwe
parents: 5759
diff changeset
146 extern OCTINTERP_API void
3523
b80bbb43a1a9 [project @ 2000-02-02 10:25:52 by jwe]
jwe
parents: 3503
diff changeset
147 octave_print_internal (std::ostream& os, const boolMatrix& m,
3215
bc3fdfe311a3 [project @ 1998-11-10 14:06:21 by jwe]
jwe
parents: 2920
diff changeset
148 bool pr_as_read_syntax = false,
bc3fdfe311a3 [project @ 1998-11-10 14:06:21 by jwe]
jwe
parents: 2920
diff changeset
149 int extra_indent = 0);
bc3fdfe311a3 [project @ 1998-11-10 14:06:21 by jwe]
jwe
parents: 2920
diff changeset
150
6109
c68896f193e3 [project @ 2006-10-27 02:16:18 by jwe]
jwe
parents: 5759
diff changeset
151 extern OCTINTERP_API void
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
152 octave_print_internal (std::ostream& os, const boolNDArray& m,
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
153 bool pr_as_read_syntax = false,
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
154 int extra_indent = 0);
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
155
6109
c68896f193e3 [project @ 2006-10-27 02:16:18 by jwe]
jwe
parents: 5759
diff changeset
156 extern OCTINTERP_API void
3523
b80bbb43a1a9 [project @ 2000-02-02 10:25:52 by jwe]
jwe
parents: 3503
diff changeset
157 octave_print_internal (std::ostream& os, const charMatrix& chm,
2920
53529870701e [project @ 1997-05-01 19:19:58 by jwe]
jwe
parents: 2907
diff changeset
158 bool pr_as_read_syntax = false,
3215
bc3fdfe311a3 [project @ 1998-11-10 14:06:21 by jwe]
jwe
parents: 2920
diff changeset
159 int extra_indent = 0,
bc3fdfe311a3 [project @ 1998-11-10 14:06:21 by jwe]
jwe
parents: 2920
diff changeset
160 bool pr_as_string = false);
1355
94697d007075 [project @ 1995-09-05 20:04:15 by jwe]
jwe
parents: 1315
diff changeset
161
6109
c68896f193e3 [project @ 2006-10-27 02:16:18 by jwe]
jwe
parents: 5759
diff changeset
162 extern OCTINTERP_API void
4655
c8829691db47 [project @ 2003-11-24 21:24:37 by jwe]
jwe
parents: 4513
diff changeset
163 octave_print_internal (std::ostream& os, const charNDArray& nda,
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
164 bool pr_as_read_syntax = false,
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
165 int extra_indent = 0,
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
166 bool pr_as_string = false);
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3933
diff changeset
167
6109
c68896f193e3 [project @ 2006-10-27 02:16:18 by jwe]
jwe
parents: 5759
diff changeset
168 extern OCTINTERP_API void
4925
90f51232d751 [project @ 2004-08-02 22:09:47 by jwe]
jwe
parents: 4901
diff changeset
169 octave_print_internal (std::ostream& os, const std::string& s,
90f51232d751 [project @ 2004-08-02 22:09:47 by jwe]
jwe
parents: 4901
diff changeset
170 bool pr_as_read_syntax = false,
90f51232d751 [project @ 2004-08-02 22:09:47 by jwe]
jwe
parents: 4901
diff changeset
171 int extra_indent = 0);
90f51232d751 [project @ 2004-08-02 22:09:47 by jwe]
jwe
parents: 4901
diff changeset
172
6109
c68896f193e3 [project @ 2006-10-27 02:16:18 by jwe]
jwe
parents: 5759
diff changeset
173 extern OCTINTERP_API void
4655
c8829691db47 [project @ 2003-11-24 21:24:37 by jwe]
jwe
parents: 4513
diff changeset
174 octave_print_internal (std::ostream& os, const ArrayN<std::string>& sa,
c8829691db47 [project @ 2003-11-24 21:24:37 by jwe]
jwe
parents: 4513
diff changeset
175 bool pr_as_read_syntax = false,
c8829691db47 [project @ 2003-11-24 21:24:37 by jwe]
jwe
parents: 4513
diff changeset
176 int extra_indent = 0);
c8829691db47 [project @ 2003-11-24 21:24:37 by jwe]
jwe
parents: 4513
diff changeset
177
7215
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
178 extern OCTINTERP_API void
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
179 octave_print_internal (std::ostream& os, const intNDArray<octave_int8>& sa,
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
180 bool pr_as_read_syntax = false,
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
181 int extra_indent = 0);
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
182
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
183 extern OCTINTERP_API void
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
184 octave_print_internal (std::ostream& os, const intNDArray<octave_uint8>& sa,
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
185 bool pr_as_read_syntax = false,
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
186 int extra_indent = 0);
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
187
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
188 extern OCTINTERP_API void
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
189 octave_print_internal (std::ostream& os, const intNDArray<octave_int16>& sa,
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
190 bool pr_as_read_syntax = false,
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
191 int extra_indent = 0);
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
192
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
193 extern OCTINTERP_API void
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
194 octave_print_internal (std::ostream& os, const intNDArray<octave_uint16>& sa,
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
195 bool pr_as_read_syntax = false,
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
196 int extra_indent = 0);
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
197
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
198 extern OCTINTERP_API void
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
199 octave_print_internal (std::ostream& os, const intNDArray<octave_int32>& sa,
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
200 bool pr_as_read_syntax = false,
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
201 int extra_indent = 0);
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
202
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
203 extern OCTINTERP_API void
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
204 octave_print_internal (std::ostream& os, const intNDArray<octave_uint32>& sa,
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
205 bool pr_as_read_syntax = false,
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
206 int extra_indent = 0);
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
207
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
208 extern OCTINTERP_API void
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
209 octave_print_internal (std::ostream& os, const intNDArray<octave_int64>& sa,
4901
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
210 bool pr_as_read_syntax = false,
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
211 int extra_indent = 0);
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
212
7215
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
213 extern OCTINTERP_API void
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
214 octave_print_internal (std::ostream& os, const intNDArray<octave_uint64>& sa,
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
215 bool pr_as_read_syntax = false,
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
216 int extra_indent = 0);
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
217
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
218 extern OCTINTERP_API void
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
219 octave_print_internal (std::ostream& os, const octave_int<int8_t>& sa,
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
220 bool pr_as_read_syntax = false);
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
221
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
222 extern OCTINTERP_API void
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
223 octave_print_internal (std::ostream& os, const octave_int<uint8_t>& sa,
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
224 bool pr_as_read_syntax = false);
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
225
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
226 extern OCTINTERP_API void
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
227 octave_print_internal (std::ostream& os, const octave_int<int16_t>& sa,
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
228 bool pr_as_read_syntax = false);
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
229
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
230 extern OCTINTERP_API void
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
231 octave_print_internal (std::ostream& os, const octave_int<uint16_t>& sa,
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
232 bool pr_as_read_syntax = false);
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
233
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
234 extern OCTINTERP_API void
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
235 octave_print_internal (std::ostream& os, const octave_int<int32_t>& sa,
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
236 bool pr_as_read_syntax = false);
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
237
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
238 extern OCTINTERP_API void
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
239 octave_print_internal (std::ostream& os, const octave_int<uint32_t>& sa,
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
240 bool pr_as_read_syntax = false);
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
241
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
242 extern OCTINTERP_API void
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
243 octave_print_internal (std::ostream& os, const octave_int<int64_t>& sa,
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
244 bool pr_as_read_syntax = false);
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
245
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
246 extern OCTINTERP_API void
dd88d61d443f [project @ 2007-11-29 16:44:45 by jwe]
jwe
parents: 7017
diff changeset
247 octave_print_internal (std::ostream& os, const octave_int<uint64_t>& sa,
4901
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
248 bool pr_as_read_syntax = false);
35bfb4e0b96b [project @ 2004-06-14 18:33:02 by jwe]
jwe
parents: 4655
diff changeset
249
6109
c68896f193e3 [project @ 2006-10-27 02:16:18 by jwe]
jwe
parents: 5759
diff changeset
250 extern OCTINTERP_API void
3933
f9ea3dcf58ee [project @ 2002-05-15 03:21:00 by jwe]
jwe
parents: 3928
diff changeset
251 octave_print_internal (std::ostream& os, const Cell& cell,
3928
e8627dc4bdf2 [project @ 2002-05-03 19:56:01 by jwe]
jwe
parents: 3523
diff changeset
252 bool pr_as_read_syntax = false,
3933
f9ea3dcf58ee [project @ 2002-05-15 03:21:00 by jwe]
jwe
parents: 3928
diff changeset
253 int extra_indent = 0,
f9ea3dcf58ee [project @ 2002-05-15 03:21:00 by jwe]
jwe
parents: 3928
diff changeset
254 bool pr_as_string = false);
3928
e8627dc4bdf2 [project @ 2002-05-03 19:56:01 by jwe]
jwe
parents: 3523
diff changeset
255
5360
33adb987c033 [project @ 2005-05-23 16:19:56 by jwe]
jwe
parents: 5307
diff changeset
256 // TRUE means that the dimensions of empty objects should be printed
33adb987c033 [project @ 2005-05-23 16:19:56 by jwe]
jwe
parents: 5307
diff changeset
257 // like this: x = [](2x0).
33adb987c033 [project @ 2005-05-23 16:19:56 by jwe]
jwe
parents: 5307
diff changeset
258 extern bool Vprint_empty_dimensions;
33adb987c033 [project @ 2005-05-23 16:19:56 by jwe]
jwe
parents: 5307
diff changeset
259
5759
ce79d238f142 [project @ 2006-04-13 13:04:32 by jwe]
jwe
parents: 5360
diff changeset
260 // How many levels of structure elements should we print?
6153
e60688a1ea07 [project @ 2006-11-13 17:30:54 by jwe]
jwe
parents: 6109
diff changeset
261 extern OCTINTERP_API int Vstruct_levels_to_print;
5759
ce79d238f142 [project @ 2006-04-13 13:04:32 by jwe]
jwe
parents: 5360
diff changeset
262
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
263 #endif
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
264
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
265 /*
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
266 ;;; Local Variables: ***
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
267 ;;; mode: C++ ***
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
268 ;;; End: ***
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
269 */