comparison src/pr-output.h @ 7789:82be108cc558

First attempt at single precision tyeps * * * corrections to qrupdate single precision routines * * * prefer demotion to single over promotion to double * * * Add single precision support to log2 function * * * Trivial PROJECT file update * * * Cache optimized hermitian/transpose methods * * * Add tests for tranpose/hermitian and ChangeLog entry for new transpose code
author David Bateman <dbateman@free.fr>
date Sun, 27 Apr 2008 22:34:17 +0200
parents dd88d61d443f
children 4d90d21a9cd9
comparison
equal deleted inserted replaced
7788:45f5faba05a2 7789:82be108cc558
28 28
29 #include "oct-cmplx.h" 29 #include "oct-cmplx.h"
30 30
31 template <typename T> class ArrayN; 31 template <typename T> class ArrayN;
32 class ComplexMatrix; 32 class ComplexMatrix;
33 class FloatComplexMatrix;
33 class ComplexNDArray; 34 class ComplexNDArray;
35 class FloatComplexNDArray;
34 class Matrix; 36 class Matrix;
37 class FloatMatrix;
35 class NDArray; 38 class NDArray;
39 class FloatNDArray;
36 class Range; 40 class Range;
37 class boolMatrix; 41 class boolMatrix;
38 class boolNDArray; 42 class boolNDArray;
39 class charMatrix; 43 class charMatrix;
40 class charNDArray; 44 class charNDArray;
41 class Cell; 45 class Cell;
42 46
43 #include "intNDArray.h" 47 #include "intNDArray.h"
44 #include "oct-inttypes.h" 48 #include "oct-inttypes.h"
45 49
50
51 extern OCTINTERP_API void
52 octave_print_internal (std::ostream& os, bool d,
53 bool pr_as_read_syntax = false);
54
46 extern OCTINTERP_API void 55 extern OCTINTERP_API void
47 octave_print_internal (std::ostream& os, double d, 56 octave_print_internal (std::ostream& os, double d,
48 bool pr_as_read_syntax = false); 57 bool pr_as_read_syntax = false);
49 58
50 extern OCTINTERP_API void 59 extern OCTINTERP_API void
60 octave_print_internal (std::ostream& os, float d,
61 bool pr_as_read_syntax = false);
62
63 extern OCTINTERP_API void
51 octave_print_internal (std::ostream& os, const Matrix& m, 64 octave_print_internal (std::ostream& os, const Matrix& m,
52 bool pr_as_read_syntax = false, 65 bool pr_as_read_syntax = false,
53 int extra_indent = 0); 66 int extra_indent = 0);
54 67
55 extern OCTINTERP_API void 68 extern OCTINTERP_API void
69 octave_print_internal (std::ostream& os, const FloatMatrix& m,
70 bool pr_as_read_syntax = false,
71 int extra_indent = 0);
72
73 extern OCTINTERP_API void
56 octave_print_internal (std::ostream& os, const NDArray& nda, 74 octave_print_internal (std::ostream& os, const NDArray& nda,
57 bool pr_as_read_syntax = false, 75 bool pr_as_read_syntax = false,
58 int extra_indent = 0); 76 int extra_indent = 0);
59 77
60 extern OCTINTERP_API void 78 extern OCTINTERP_API void
79 octave_print_internal (std::ostream& os, const FloatNDArray& nda,
80 bool pr_as_read_syntax = false,
81 int extra_indent = 0);
82
83 extern OCTINTERP_API void
61 octave_print_internal (std::ostream& os, const Complex& c, 84 octave_print_internal (std::ostream& os, const Complex& c,
62 bool pr_as_read_syntax = false); 85 bool pr_as_read_syntax = false);
63 86
64 extern OCTINTERP_API void 87 extern OCTINTERP_API void
88 octave_print_internal (std::ostream& os, const FloatComplex& c,
89 bool pr_as_read_syntax = false);
90
91 extern OCTINTERP_API void
65 octave_print_internal (std::ostream& os, const ComplexMatrix& cm, 92 octave_print_internal (std::ostream& os, const ComplexMatrix& cm,
66 bool pr_as_read_syntax = false, 93 bool pr_as_read_syntax = false,
67 int extra_indent = 0); 94 int extra_indent = 0);
68 95
69 extern OCTINTERP_API void 96 extern OCTINTERP_API void
97 octave_print_internal (std::ostream& os, const FloatComplexMatrix& cm,
98 bool pr_as_read_syntax = false,
99 int extra_indent = 0);
100
101 extern OCTINTERP_API void
70 octave_print_internal (std::ostream& os, const ComplexNDArray& nda, 102 octave_print_internal (std::ostream& os, const ComplexNDArray& nda,
103 bool pr_as_read_syntax = false,
104 int extra_indent = 0);
105
106 extern OCTINTERP_API void
107 octave_print_internal (std::ostream& os, const FloatComplexNDArray& nda,
71 bool pr_as_read_syntax = false, 108 bool pr_as_read_syntax = false,
72 int extra_indent = 0); 109 int extra_indent = 0);
73 110
74 extern OCTINTERP_API void 111 extern OCTINTERP_API void
75 octave_print_internal (std::ostream& os, const Range& r, 112 octave_print_internal (std::ostream& os, const Range& r,