2376
|
1 /* |
|
2 |
2847
|
3 Copyright (C) 1996, 1997 John W. Eaton |
2376
|
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 2, or (at your option) any |
|
10 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, write to the Free |
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
20 |
|
21 */ |
|
22 |
|
23 #ifdef HAVE_CONFIG_H |
|
24 #include <config.h> |
|
25 #endif |
|
26 |
3503
|
27 #include <iostream> |
4726
|
28 #include <vector> |
2901
|
29 |
4944
|
30 #include "data-conv.h" |
2376
|
31 #include "lo-ieee.h" |
|
32 #include "mx-base.h" |
4944
|
33 #include "mach-info.h" |
2376
|
34 |
|
35 #include "gripes.h" |
|
36 #include "oct-obj.h" |
4944
|
37 #include "oct-stream.h" |
2410
|
38 #include "ops.h" |
3219
|
39 #include "ov-base.h" |
|
40 #include "ov-base-mat.h" |
|
41 #include "ov-base-mat.cc" |
2410
|
42 #include "ov-complex.h" |
2376
|
43 #include "ov-cx-mat.h" |
2410
|
44 #include "ov-re-mat.h" |
|
45 #include "ov-scalar.h" |
2376
|
46 #include "pr-output.h" |
|
47 |
4687
|
48 #include "byte-swap.h" |
|
49 #include "ls-oct-ascii.h" |
|
50 #include "ls-hdf5.h" |
|
51 #include "ls-utils.h" |
|
52 |
4513
|
53 template class octave_base_matrix<ComplexNDArray>; |
2376
|
54 |
3219
|
55 DEFINE_OCTAVE_ALLOCATOR (octave_complex_matrix); |
2477
|
56 |
4612
|
57 DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_complex_matrix, |
|
58 "complex matrix", "double"); |
2376
|
59 |
2410
|
60 octave_value * |
|
61 octave_complex_matrix::try_narrowing_conversion (void) |
|
62 { |
|
63 octave_value *retval = 0; |
|
64 |
4513
|
65 if (matrix.ndims () == 2) |
|
66 { |
|
67 ComplexMatrix cm = matrix.matrix_value (); |
2410
|
68 |
4513
|
69 int nr = cm.rows (); |
|
70 int nc = cm.cols (); |
|
71 |
|
72 if (nr == 1 && nc == 1) |
|
73 { |
|
74 Complex c = matrix (0, 0); |
2410
|
75 |
4513
|
76 if (imag (c) == 0.0) |
|
77 retval = new octave_scalar (std::real (c)); |
|
78 else |
|
79 retval = new octave_complex (c); |
|
80 } |
|
81 else if (nr == 0 || nc == 0) |
|
82 retval = new octave_matrix (Matrix (nr, nc)); |
|
83 else if (cm.all_elements_are_real ()) |
|
84 retval = new octave_matrix (::real (cm)); |
2410
|
85 } |
4923
|
86 else if (matrix.all_elements_are_real ()) |
|
87 retval = new octave_matrix (::real (matrix)); |
2410
|
88 |
|
89 return retval; |
|
90 } |
2376
|
91 |
|
92 void |
|
93 octave_complex_matrix::assign (const octave_value_list& idx, |
4686
|
94 const ComplexNDArray& rhs) |
4418
|
95 { |
4513
|
96 octave_base_matrix<ComplexNDArray>::assign (idx, rhs); |
4418
|
97 } |
|
98 |
|
99 void |
|
100 octave_complex_matrix::assign (const octave_value_list& idx, |
4686
|
101 const NDArray& rhs) |
2376
|
102 { |
|
103 int len = idx.length (); |
|
104 |
4513
|
105 for (int i = 0; i < len; i++) |
|
106 matrix.set_index (idx(i).index_vector ()); |
2376
|
107 |
4513
|
108 ::assign (matrix, rhs); |
2376
|
109 } |
|
110 |
|
111 bool |
|
112 octave_complex_matrix::valid_as_scalar_index (void) const |
|
113 { |
|
114 // XXX FIXME XXX |
|
115 return false; |
|
116 } |
|
117 |
|
118 double |
|
119 octave_complex_matrix::double_value (bool force_conversion) const |
|
120 { |
4102
|
121 double retval = lo_ieee_nan_value (); |
2376
|
122 |
4451
|
123 if (! force_conversion && Vwarn_imag_to_real) |
2376
|
124 gripe_implicit_conversion ("complex matrix", "real scalar"); |
|
125 |
4455
|
126 // XXX FIXME XXX -- maybe this should be a function, valid_as_scalar() |
|
127 if (rows () > 0 && columns () > 0) |
|
128 { |
|
129 // XXX FIXME XXX -- is warn_fortran_indexing the right variable here? |
|
130 if (Vwarn_fortran_indexing) |
|
131 gripe_implicit_conversion ("complex matrix", "real scalar"); |
|
132 |
|
133 retval = std::real (matrix (0, 0)); |
|
134 } |
2376
|
135 else |
|
136 gripe_invalid_conversion ("complex matrix", "real scalar"); |
|
137 |
|
138 return retval; |
|
139 } |
|
140 |
|
141 Matrix |
|
142 octave_complex_matrix::matrix_value (bool force_conversion) const |
|
143 { |
|
144 Matrix retval; |
|
145 |
4451
|
146 if (! force_conversion && Vwarn_imag_to_real) |
2376
|
147 gripe_implicit_conversion ("complex matrix", "real matrix"); |
|
148 |
4513
|
149 retval = ::real (matrix.matrix_value ()); |
2376
|
150 |
|
151 return retval; |
|
152 } |
|
153 |
|
154 Complex |
|
155 octave_complex_matrix::complex_value (bool) const |
|
156 { |
4102
|
157 double tmp = lo_ieee_nan_value (); |
|
158 |
|
159 Complex retval (tmp, tmp); |
2376
|
160 |
4455
|
161 // XXX FIXME XXX -- maybe this should be a function, valid_as_scalar() |
|
162 if (rows () > 0 && columns () > 0) |
|
163 { |
|
164 // XXX FIXME XXX -- is warn_fortran_indexing the right variable here? |
|
165 if (Vwarn_fortran_indexing) |
|
166 gripe_implicit_conversion ("complex matrix", "complex scalar"); |
|
167 |
|
168 retval = matrix (0, 0); |
|
169 } |
2376
|
170 else |
|
171 gripe_invalid_conversion ("complex matrix", "complex scalar"); |
|
172 |
|
173 return retval; |
|
174 } |
|
175 |
|
176 ComplexMatrix |
|
177 octave_complex_matrix::complex_matrix_value (bool) const |
|
178 { |
4513
|
179 return matrix.matrix_value (); |
2376
|
180 } |
|
181 |
5164
|
182 SparseMatrix |
|
183 octave_complex_matrix::sparse_matrix_value (bool force_conversion) const |
|
184 { |
|
185 SparseMatrix retval; |
|
186 |
|
187 if (! force_conversion && Vwarn_imag_to_real) |
|
188 gripe_implicit_conversion ("complex matrix", "real matrix"); |
|
189 |
|
190 retval = SparseMatrix (::real (matrix.matrix_value ())); |
|
191 |
|
192 return retval; |
|
193 } |
|
194 |
|
195 SparseComplexMatrix |
|
196 octave_complex_matrix::sparse_complex_matrix_value (bool) const |
|
197 { |
|
198 return SparseComplexMatrix (matrix.matrix_value ()); |
|
199 } |
|
200 |
4687
|
201 static ComplexMatrix |
|
202 strip_infnan (const ComplexMatrix& m) |
|
203 { |
|
204 int nr = m.rows (); |
|
205 int nc = m.columns (); |
|
206 |
|
207 ComplexMatrix retval (nr, nc); |
|
208 |
|
209 int k = 0; |
|
210 for (int i = 0; i < nr; i++) |
|
211 { |
|
212 for (int j = 0; j < nc; j++) |
|
213 { |
|
214 Complex c = m (i, j); |
|
215 if (xisnan (c)) |
|
216 goto next_row; |
|
217 else |
|
218 { |
|
219 double re = real (c); |
|
220 double im = imag (c); |
|
221 |
|
222 re = xisinf (re) ? (re > 0 ? OCT_RBV : -OCT_RBV) : re; |
|
223 im = xisinf (im) ? (im > 0 ? OCT_RBV : -OCT_RBV) : im; |
|
224 |
|
225 retval (k, j) = Complex (re, im); |
|
226 } |
|
227 } |
|
228 k++; |
|
229 |
|
230 next_row: |
|
231 continue; |
|
232 } |
|
233 |
|
234 if (k > 0) |
|
235 retval.resize (k, nc); |
|
236 |
|
237 return retval; |
|
238 } |
|
239 |
|
240 bool |
|
241 octave_complex_matrix::save_ascii (std::ostream& os, bool& infnan_warned, |
|
242 bool strip_nan_and_inf) |
|
243 { |
|
244 dim_vector d = dims (); |
|
245 if (d.length () > 2) |
|
246 { |
|
247 ComplexNDArray tmp = complex_array_value (); |
|
248 |
|
249 if (strip_nan_and_inf) |
|
250 { |
|
251 warning ("save: Can not strip Inf or NaN values"); |
|
252 warning ("save: Inf or NaN values may not be reloadable"); |
|
253 infnan_warned = true; |
|
254 } |
|
255 else if (! infnan_warned && tmp.any_element_is_inf_or_nan ()) |
|
256 { |
|
257 warning ("save: Inf or NaN values may not be reloadable"); |
|
258 infnan_warned = true; |
|
259 } |
|
260 |
|
261 os << "# ndims: " << d.length () << "\n"; |
|
262 |
|
263 for (int i=0; i < d.length (); i++) |
|
264 os << " " << d (i); |
|
265 |
|
266 os << "\n" << tmp; |
|
267 } |
|
268 else |
|
269 { |
|
270 // Keep this case, rather than use generic code above for backward |
|
271 // compatiability. Makes load_ascii much more complex!! |
|
272 os << "# rows: " << rows () << "\n" |
|
273 << "# columns: " << columns () << "\n"; |
|
274 |
|
275 ComplexMatrix tmp = complex_matrix_value (); |
|
276 |
|
277 if (strip_nan_and_inf) |
|
278 tmp = strip_infnan (tmp); |
|
279 else if (! infnan_warned && tmp.any_element_is_inf_or_nan ()) |
|
280 { |
|
281 warning ("save: Inf or NaN values may not be reloadable"); |
|
282 infnan_warned = true; |
|
283 } |
|
284 |
|
285 os << tmp; |
|
286 } |
|
287 |
|
288 return true; |
|
289 } |
|
290 |
|
291 bool |
|
292 octave_complex_matrix::load_ascii (std::istream& is) |
|
293 { |
|
294 bool success = true; |
5099
|
295 |
|
296 string_vector keywords(2); |
|
297 |
|
298 keywords[0] = "ndims"; |
|
299 keywords[1] = "rows"; |
4687
|
300 |
5099
|
301 std::string kw; |
|
302 int val = 0; |
|
303 |
|
304 if (extract_keyword (is, keywords, kw, val, true)) |
4687
|
305 { |
5099
|
306 if (kw == "ndims") |
4687
|
307 { |
5099
|
308 int mdims = val; |
4687
|
309 |
5099
|
310 if (mdims >= 0) |
4687
|
311 { |
5099
|
312 dim_vector dv; |
|
313 dv.resize (mdims); |
4687
|
314 |
5099
|
315 for (int i = 0; i < mdims; i++) |
|
316 is >> dv(i); |
4687
|
317 |
5099
|
318 ComplexNDArray tmp(dv); |
4687
|
319 is >> tmp; |
5099
|
320 |
4687
|
321 if (!is) |
|
322 { |
|
323 error ("load: failed to load matrix constant"); |
|
324 success = false; |
|
325 } |
|
326 matrix = tmp; |
|
327 } |
|
328 else |
5099
|
329 { |
|
330 error ("load: failed to extract number of rows and columns"); |
|
331 success = false; |
|
332 } |
4687
|
333 } |
5099
|
334 else if (kw == "rows") |
4687
|
335 { |
5099
|
336 int nr = val; |
|
337 int nc = 0; |
|
338 |
|
339 if (nr >= 0 && extract_keyword (is, "columns", nc) && nc >= 0) |
|
340 { |
|
341 if (nr > 0 && nc > 0) |
|
342 { |
|
343 ComplexMatrix tmp (nr, nc); |
|
344 is >> tmp; |
|
345 if (!is) |
|
346 { |
|
347 error ("load: failed to load matrix constant"); |
|
348 success = false; |
|
349 } |
|
350 matrix = tmp; |
|
351 } |
|
352 else if (nr == 0 || nc == 0) |
|
353 matrix = ComplexMatrix (nr, nc); |
|
354 else |
|
355 panic_impossible (); |
|
356 } |
|
357 else |
|
358 { |
|
359 error ("load: failed to extract number of rows and columns"); |
|
360 success = false; |
|
361 } |
4687
|
362 } |
5099
|
363 else |
|
364 panic_impossible (); |
|
365 } |
|
366 else |
|
367 { |
|
368 error ("load: failed to extract number of rows and columns"); |
|
369 success = false; |
4687
|
370 } |
|
371 |
|
372 return success; |
|
373 } |
|
374 |
|
375 bool |
|
376 octave_complex_matrix::save_binary (std::ostream& os, bool& save_as_floats) |
|
377 { |
|
378 dim_vector d = dims (); |
|
379 if (d.length() < 1) |
|
380 return false; |
|
381 |
|
382 // Use negative value for ndims to differentiate with old format!! |
|
383 FOUR_BYTE_INT tmp = - d.length(); |
|
384 os.write (X_CAST (char *, &tmp), 4); |
|
385 for (int i=0; i < d.length (); i++) |
|
386 { |
|
387 tmp = d(i); |
|
388 os.write (X_CAST (char *, &tmp), 4); |
|
389 } |
|
390 |
|
391 ComplexNDArray m = complex_array_value (); |
|
392 save_type st = LS_DOUBLE; |
|
393 if (save_as_floats) |
|
394 { |
|
395 if (m.too_large_for_float ()) |
|
396 { |
|
397 warning ("save: some values too large to save as floats --"); |
|
398 warning ("save: saving as doubles instead"); |
|
399 } |
|
400 else |
|
401 st = LS_FLOAT; |
|
402 } |
|
403 else if (d.numel () > 4096) // XXX FIXME XXX -- make this configurable. |
|
404 { |
|
405 double max_val, min_val; |
|
406 if (m.all_integers (max_val, min_val)) |
|
407 st = get_save_type (max_val, min_val); |
|
408 } |
|
409 |
|
410 |
|
411 const Complex *mtmp = m.data (); |
|
412 write_doubles (os, X_CAST (const double *, mtmp), st, 2 * d.numel ()); |
|
413 |
|
414 return true; |
|
415 } |
|
416 |
|
417 bool |
|
418 octave_complex_matrix::load_binary (std::istream& is, bool swap, |
|
419 oct_mach_info::float_format fmt) |
|
420 { |
|
421 char tmp; |
|
422 FOUR_BYTE_INT mdims; |
|
423 if (! is.read (X_CAST (char *, &mdims), 4)) |
|
424 return false; |
|
425 if (swap) |
4944
|
426 swap_bytes<4> (&mdims); |
4687
|
427 if (mdims < 0) |
|
428 { |
|
429 mdims = - mdims; |
|
430 FOUR_BYTE_INT di; |
|
431 dim_vector dv; |
|
432 dv.resize (mdims); |
|
433 |
|
434 for (int i = 0; i < mdims; i++) |
|
435 { |
|
436 if (! is.read (X_CAST (char *, &di), 4)) |
|
437 return false; |
|
438 if (swap) |
4944
|
439 swap_bytes<4> (&di); |
4687
|
440 dv(i) = di; |
|
441 } |
|
442 |
5157
|
443 // Convert an array with a single dimension to be a row vector. |
|
444 // Octave should never write files like this, other software |
|
445 // might. |
|
446 |
|
447 if (mdims == 1) |
|
448 { |
|
449 mdims = 2; |
|
450 dv.resize (mdims); |
|
451 dv(1) = dv(0); |
|
452 dv(0) = 1; |
|
453 } |
|
454 |
4687
|
455 if (! is.read (X_CAST (char *, &tmp), 1)) |
|
456 return false; |
|
457 |
|
458 ComplexNDArray m(dv); |
|
459 Complex *im = m.fortran_vec (); |
|
460 read_doubles (is, X_CAST (double *, im), X_CAST (save_type, tmp), |
|
461 2 * dv.numel (), swap, fmt); |
|
462 if (error_state || ! is) |
|
463 return false; |
|
464 matrix = m; |
|
465 } |
|
466 else |
|
467 { |
|
468 FOUR_BYTE_INT nr, nc; |
|
469 nr = mdims; |
|
470 if (! is.read (X_CAST (char *, &nc), 4)) |
|
471 return false; |
|
472 if (swap) |
4944
|
473 swap_bytes<4> (&nc); |
4687
|
474 if (! is.read (X_CAST (char *, &tmp), 1)) |
|
475 return false; |
|
476 ComplexMatrix m (nr, nc); |
|
477 Complex *im = m.fortran_vec (); |
|
478 int len = nr * nc; |
|
479 read_doubles (is, X_CAST (double *, im), |
|
480 X_CAST (save_type, tmp), 2*len, swap, fmt); |
|
481 if (error_state || ! is) |
|
482 return false; |
|
483 matrix = m; |
|
484 } |
|
485 return true; |
|
486 } |
|
487 |
|
488 #if defined (HAVE_HDF5) |
4944
|
489 |
4687
|
490 bool |
|
491 octave_complex_matrix::save_hdf5 (hid_t loc_id, const char *name, |
|
492 bool save_as_floats) |
|
493 { |
4837
|
494 dim_vector dv = dims (); |
|
495 int empty = save_hdf5_empty (loc_id, name, dv); |
|
496 if (empty) |
4805
|
497 return (empty > 0); |
|
498 |
4837
|
499 int rank = dv.length (); |
4805
|
500 hid_t space_hid = -1, data_hid = -1, type_hid = -1; |
4687
|
501 bool retval = true; |
|
502 ComplexNDArray m = complex_array_value (); |
|
503 |
4805
|
504 OCTAVE_LOCAL_BUFFER (hsize_t, hdims, rank); |
|
505 |
4687
|
506 // Octave uses column-major, while HDF5 uses row-major ordering |
4805
|
507 for (int i = 0; i < rank; i++) |
4837
|
508 hdims[i] = dv (rank-i-1); |
4805
|
509 |
4815
|
510 space_hid = H5Screate_simple (rank, hdims, 0); |
4687
|
511 if (space_hid < 0) return false; |
|
512 |
|
513 hid_t save_type_hid = H5T_NATIVE_DOUBLE; |
|
514 |
|
515 if (save_as_floats) |
|
516 { |
|
517 if (m.too_large_for_float ()) |
|
518 { |
|
519 warning ("save: some values too large to save as floats --"); |
|
520 warning ("save: saving as doubles instead"); |
|
521 } |
|
522 else |
|
523 save_type_hid = H5T_NATIVE_FLOAT; |
|
524 } |
|
525 #if HAVE_HDF5_INT2FLOAT_CONVERSIONS |
|
526 // hdf5 currently doesn't support float/integer conversions |
|
527 else |
|
528 { |
|
529 double max_val, min_val; |
|
530 |
|
531 if (m.all_integers (max_val, min_val)) |
|
532 save_type_hid |
|
533 = save_type_to_hdf5 (get_save_type (max_val, min_val)); |
|
534 } |
|
535 #endif /* HAVE_HDF5_INT2FLOAT_CONVERSIONS */ |
|
536 |
|
537 type_hid = hdf5_make_complex_type (save_type_hid); |
|
538 if (type_hid < 0) |
|
539 { |
|
540 H5Sclose (space_hid); |
|
541 return false; |
|
542 } |
|
543 |
|
544 data_hid = H5Dcreate (loc_id, name, type_hid, space_hid, H5P_DEFAULT); |
|
545 if (data_hid < 0) |
|
546 { |
|
547 H5Sclose (space_hid); |
|
548 H5Tclose (type_hid); |
|
549 return false; |
|
550 } |
|
551 |
|
552 hid_t complex_type_hid = hdf5_make_complex_type (H5T_NATIVE_DOUBLE); |
|
553 if (complex_type_hid < 0) retval = false; |
|
554 |
|
555 if (retval) |
|
556 { |
|
557 Complex *mtmp = m.fortran_vec (); |
|
558 if (H5Dwrite (data_hid, complex_type_hid, H5S_ALL, H5S_ALL, H5P_DEFAULT, |
4815
|
559 mtmp) < 0) |
4687
|
560 { |
|
561 H5Tclose (complex_type_hid); |
|
562 retval = false; |
|
563 } |
|
564 } |
|
565 |
|
566 H5Tclose (complex_type_hid); |
|
567 H5Dclose (data_hid); |
|
568 H5Tclose (type_hid); |
|
569 H5Sclose (space_hid); |
4837
|
570 |
4687
|
571 return retval; |
|
572 } |
|
573 |
|
574 bool |
|
575 octave_complex_matrix::load_hdf5 (hid_t loc_id, const char *name, |
|
576 bool /* have_h5giterate_bug */) |
|
577 { |
4837
|
578 bool retval = false; |
|
579 |
4805
|
580 dim_vector dv; |
|
581 int empty = load_hdf5_empty (loc_id, name, dv); |
|
582 if (empty > 0) |
|
583 matrix.resize(dv); |
4837
|
584 if (empty) |
4805
|
585 return (empty > 0); |
|
586 |
4687
|
587 hid_t data_hid = H5Dopen (loc_id, name); |
|
588 hid_t type_hid = H5Dget_type (data_hid); |
|
589 |
|
590 hid_t complex_type = hdf5_make_complex_type (H5T_NATIVE_DOUBLE); |
|
591 |
|
592 if (! hdf5_types_compatible (type_hid, complex_type)) |
|
593 { |
4837
|
594 H5Tclose (complex_type); |
4687
|
595 H5Dclose (data_hid); |
|
596 return false; |
|
597 } |
|
598 |
|
599 hid_t space_id = H5Dget_space (data_hid); |
|
600 |
|
601 hsize_t rank = H5Sget_simple_extent_ndims (space_id); |
|
602 |
|
603 if (rank < 1) |
|
604 { |
4837
|
605 H5Tclose (complex_type); |
4687
|
606 H5Sclose (space_id); |
|
607 H5Dclose (data_hid); |
|
608 return false; |
|
609 } |
|
610 |
|
611 OCTAVE_LOCAL_BUFFER (hsize_t, hdims, rank); |
|
612 OCTAVE_LOCAL_BUFFER (hsize_t, maxdims, rank); |
|
613 |
|
614 H5Sget_simple_extent_dims (space_id, hdims, maxdims); |
|
615 |
|
616 // Octave uses column-major, while HDF5 uses row-major ordering |
|
617 if (rank == 1) |
|
618 { |
|
619 dv.resize (2); |
|
620 dv(0) = 1; |
|
621 dv(1) = hdims[0]; |
|
622 } |
|
623 else |
|
624 { |
|
625 dv.resize (rank); |
4815
|
626 for (hsize_t i = 0, j = rank - 1; i < rank; i++, j--) |
4687
|
627 dv(j) = hdims[i]; |
|
628 } |
|
629 |
|
630 ComplexNDArray m (dv); |
|
631 Complex *reim = m.fortran_vec (); |
4815
|
632 if (H5Dread (data_hid, complex_type, H5S_ALL, H5S_ALL, H5P_DEFAULT, |
|
633 reim) >= 0) |
4687
|
634 { |
|
635 retval = true; |
|
636 matrix = m; |
|
637 } |
|
638 |
4837
|
639 H5Tclose (complex_type); |
4687
|
640 H5Sclose (space_id); |
|
641 H5Dclose (data_hid); |
4837
|
642 |
4687
|
643 return retval; |
|
644 } |
4944
|
645 |
4687
|
646 #endif |
|
647 |
4643
|
648 void |
|
649 octave_complex_matrix::print_raw (std::ostream& os, |
|
650 bool pr_as_read_syntax) const |
|
651 { |
|
652 octave_print_internal (os, matrix, pr_as_read_syntax, |
|
653 current_print_indent_level ()); |
|
654 } |
|
655 |
2376
|
656 /* |
|
657 ;;; Local Variables: *** |
|
658 ;;; mode: C++ *** |
|
659 ;;; End: *** |
|
660 */ |