GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
pr-output.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 1993-2017 John W. Eaton
4 
5 This file is part of Octave.
6 
7 Octave is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 3 of the License, or (at your
10 option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with Octave; see the file COPYING. If not, see
19 <http://www.gnu.org/licenses/>.
20 
21 */
22 
23 #if ! defined (octave_pr_output_h)
24 #define octave_pr_output_h 1
25 
26 #include "octave-config.h"
27 
28 #include <iosfwd>
29 
30 #include "oct-cmplx.h"
31 #include "oct-inttypes-fwd.h"
32 
33 template <typename T> class Array;
34 class ComplexMatrix;
35 class FloatComplexMatrix;
36 class ComplexDiagMatrix;
38 class ComplexNDArray;
40 class Matrix;
41 class FloatMatrix;
42 class DiagMatrix;
43 class FloatDiagMatrix;
44 class NDArray;
45 class FloatNDArray;
46 class Range;
47 class boolMatrix;
48 class boolNDArray;
49 class charMatrix;
50 class charNDArray;
51 class PermMatrix;
52 class Cell;
53 class octave_value;
54 
55 template <typename T> class intNDArray;
56 
57 extern OCTINTERP_API void
58 octave_print_internal (std::ostream& os, bool d,
59  bool pr_as_read_syntax = false);
60 
61 extern OCTINTERP_API void
62 octave_print_internal (std::ostream& os, char c,
63  bool pr_as_read_syntax = false);
64 
65 extern OCTINTERP_API void
66 octave_print_internal (std::ostream& os, double d,
67  bool pr_as_read_syntax = false);
68 
69 extern OCTINTERP_API void
70 octave_print_internal (std::ostream& os, float d,
71  bool pr_as_read_syntax = false);
72 
73 extern OCTINTERP_API void
74 octave_print_internal (std::ostream& os, const Matrix& m,
75  bool pr_as_read_syntax = false,
76  int extra_indent = 0);
77 
78 extern OCTINTERP_API void
79 octave_print_internal (std::ostream& os, const DiagMatrix& m,
80  bool pr_as_read_syntax = false,
81  int extra_indent = 0);
82 
83 extern OCTINTERP_API void
84 octave_print_internal (std::ostream& os, const FloatMatrix& m,
85  bool pr_as_read_syntax = false,
86  int extra_indent = 0);
87 
88 extern OCTINTERP_API void
89 octave_print_internal (std::ostream& os, const FloatDiagMatrix& m,
90  bool pr_as_read_syntax = false,
91  int extra_indent = 0);
92 
93 extern OCTINTERP_API void
94 octave_print_internal (std::ostream& os, const NDArray& nda,
95  bool pr_as_read_syntax = false,
96  int extra_indent = 0);
97 
98 extern OCTINTERP_API void
99 octave_print_internal (std::ostream& os, const FloatNDArray& nda,
100  bool pr_as_read_syntax = false,
101  int extra_indent = 0);
102 
103 extern OCTINTERP_API void
104 octave_print_internal (std::ostream& os, const Complex& c,
105  bool pr_as_read_syntax = false);
106 
107 extern OCTINTERP_API void
108 octave_print_internal (std::ostream& os, const FloatComplex& c,
109  bool pr_as_read_syntax = false);
110 
111 extern OCTINTERP_API void
112 octave_print_internal (std::ostream& os, const ComplexMatrix& cm,
113  bool pr_as_read_syntax = false,
114  int extra_indent = 0);
115 
116 extern OCTINTERP_API void
117 octave_print_internal (std::ostream& os, const ComplexDiagMatrix& cm,
118  bool pr_as_read_syntax = false,
119  int extra_indent = 0);
120 
121 extern OCTINTERP_API void
122 octave_print_internal (std::ostream& os, const FloatComplexMatrix& cm,
123  bool pr_as_read_syntax = false,
124  int extra_indent = 0);
125 
126 extern OCTINTERP_API void
127 octave_print_internal (std::ostream& os, const FloatComplexDiagMatrix& cm,
128  bool pr_as_read_syntax = false,
129  int extra_indent = 0);
130 
131 extern OCTINTERP_API void
132 octave_print_internal (std::ostream& os, const ComplexNDArray& nda,
133  bool pr_as_read_syntax = false,
134  int extra_indent = 0);
135 
136 extern OCTINTERP_API void
137 octave_print_internal (std::ostream& os, const FloatComplexNDArray& nda,
138  bool pr_as_read_syntax = false,
139  int extra_indent = 0);
140 
141 extern OCTINTERP_API void
142 octave_print_internal (std::ostream& os, const PermMatrix& m,
143  bool pr_as_read_syntax = false,
144  int extra_indent = 0);
145 
146 extern OCTINTERP_API void
147 octave_print_internal (std::ostream& os, const Range& r,
148  bool pr_as_read_syntax = false,
149  int extra_indent = 0);
150 
151 extern OCTINTERP_API void
152 octave_print_internal (std::ostream& os, const boolMatrix& m,
153  bool pr_as_read_syntax = false,
154  int extra_indent = 0);
155 
156 extern OCTINTERP_API void
157 octave_print_internal (std::ostream& os, const boolNDArray& m,
158  bool pr_as_read_syntax = false,
159  int extra_indent = 0);
160 
161 extern OCTINTERP_API void
162 octave_print_internal (std::ostream& os, const charMatrix& chm,
163  bool pr_as_read_syntax = false,
164  int extra_indent = 0,
165  bool pr_as_string = false);
166 
167 extern OCTINTERP_API void
168 octave_print_internal (std::ostream& os, const charNDArray& nda,
169  bool pr_as_read_syntax = false,
170  int extra_indent = 0,
171  bool pr_as_string = false);
172 
173 extern OCTINTERP_API void
174 octave_print_internal (std::ostream& os, const std::string& s,
175  bool pr_as_read_syntax = false,
176  int extra_indent = 0);
177 
178 extern OCTINTERP_API void
179 octave_print_internal (std::ostream& os, const Array<std::string>& sa,
180  bool pr_as_read_syntax = false,
181  int extra_indent = 0);
182 
183 extern OCTINTERP_API void
184 octave_print_internal (std::ostream& os, const intNDArray<octave_int8>& sa,
185  bool pr_as_read_syntax = false,
186  int extra_indent = 0);
187 
188 extern OCTINTERP_API void
189 octave_print_internal (std::ostream& os, const intNDArray<octave_uint8>& sa,
190  bool pr_as_read_syntax = false,
191  int extra_indent = 0);
192 
193 extern OCTINTERP_API void
194 octave_print_internal (std::ostream& os, const intNDArray<octave_int16>& sa,
195  bool pr_as_read_syntax = false,
196  int extra_indent = 0);
197 
198 extern OCTINTERP_API void
199 octave_print_internal (std::ostream& os, const intNDArray<octave_uint16>& sa,
200  bool pr_as_read_syntax = false,
201  int extra_indent = 0);
202 
203 extern OCTINTERP_API void
204 octave_print_internal (std::ostream& os, const intNDArray<octave_int32>& sa,
205  bool pr_as_read_syntax = false,
206  int extra_indent = 0);
207 
208 extern OCTINTERP_API void
209 octave_print_internal (std::ostream& os, const intNDArray<octave_uint32>& sa,
210  bool pr_as_read_syntax = false,
211  int extra_indent = 0);
212 
213 extern OCTINTERP_API void
214 octave_print_internal (std::ostream& os, const intNDArray<octave_int64>& sa,
215  bool pr_as_read_syntax = false,
216  int extra_indent = 0);
217 
218 extern OCTINTERP_API void
219 octave_print_internal (std::ostream& os, const intNDArray<octave_uint64>& sa,
220  bool pr_as_read_syntax = false,
221  int extra_indent = 0);
222 
223 extern OCTINTERP_API void
224 octave_print_internal (std::ostream& os, const octave_int<int8_t>& sa,
225  bool pr_as_read_syntax = false);
226 
227 extern OCTINTERP_API void
228 octave_print_internal (std::ostream& os, const octave_int<uint8_t>& sa,
229  bool pr_as_read_syntax = false);
230 
231 extern OCTINTERP_API void
232 octave_print_internal (std::ostream& os, const octave_int<int16_t>& sa,
233  bool pr_as_read_syntax = false);
234 
235 extern OCTINTERP_API void
236 octave_print_internal (std::ostream& os, const octave_int<uint16_t>& sa,
237  bool pr_as_read_syntax = false);
238 
239 extern OCTINTERP_API void
240 octave_print_internal (std::ostream& os, const octave_int<int32_t>& sa,
241  bool pr_as_read_syntax = false);
242 
243 extern OCTINTERP_API void
244 octave_print_internal (std::ostream& os, const octave_int<uint32_t>& sa,
245  bool pr_as_read_syntax = false);
246 
247 extern OCTINTERP_API void
248 octave_print_internal (std::ostream& os, const octave_int<int64_t>& sa,
249  bool pr_as_read_syntax = false);
250 
251 extern OCTINTERP_API void
252 octave_print_internal (std::ostream& os, const octave_int<uint64_t>& sa,
253  bool pr_as_read_syntax = false);
254 
255 extern OCTINTERP_API void
256 octave_print_internal (std::ostream& os, const Cell& cell,
257  bool pr_as_read_syntax = false,
258  int extra_indent = 0,
259  bool pr_as_string = false);
260 
261 extern OCTINTERP_API void
262 octave_print_internal (std::ostream& os, const octave_value& ov,
263  bool pr_as_read_syntax = false);
264 
265 // TRUE means that the dimensions of empty objects should be printed
266 // like this: x = [](2x0).
267 extern bool Vprint_empty_dimensions;
268 
269 // TRUE means don't put empty lines in output
270 extern bool Vcompact_format;
271 
272 #endif
Definition: Cell.h:37
Definition: Range.h:33
bool Vprint_empty_dimensions
Definition: pr-output.cc:76
s
Definition: file-io.cc:2682
F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &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 F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T F77_REAL F77_REAL &F77_RET_T F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE * d
#define OCTINTERP_API
Definition: mexproto.h:69
OCTINTERP_API void octave_print_internal(std::ostream &os, bool d, bool pr_as_read_syntax=false)
Definition: pr-output.cc:2602
nd deftypefn *octave_map m
Definition: ov-struct.cc:2058
Definition: dMatrix.h:37
the sparsity preserving column transformation such that that defines the pivoting threshold can be given in which case it defines the c
Definition: lu.cc:138
N Dimensional Array with copy-on-write semantics.
Definition: Array.h:126
std::complex< float > FloatComplex
Definition: oct-cmplx.h:32
std::complex< double > Complex
Definition: oct-cmplx.h:31
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
Definition: utils.cc:854
bool Vcompact_format
Definition: pr-output.cc:107