annotate main/fixed/src/fixedCMatrix.h @ 5655:0924c374b60d octave-forge

Update fixed point code for 3.1.x. Minor bug in test code still present though code seems to work fine
author adb014
date Mon, 18 May 2009 03:18:11 +0000
parents f8d77845533f
children d84d2fea3c90
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
1 /*
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
2
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
3 Copyright (C) 2003 Motorola Inc
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
4 Copyright (C) 2003 David Bateman
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
5
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
6 This program is free software; you can redistribute it and/or modify it
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
7 under the terms of the GNU General Public License as published by the
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
8 Free Software Foundation; either version 2, or (at your option) any
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
9 later version.
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
10
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
11 This program is distributed in the hope that it will be useful, but WITHOUT
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
14 for more details.
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
15
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
4404
2de537641f94 More copyright updates
adb014
parents: 3645
diff changeset
17 along with this program; see the file COPYING. If not, see
2de537641f94 More copyright updates
adb014
parents: 3645
diff changeset
18 <http://www.gnu.org/licenses/>.
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
19
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
20 In addition to the terms of the GPL, you are permitted to link
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
21 this program with any Open Source program, as defined by the
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
22 Open Source Initiative (www.opensource.org)
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
23
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
24 */
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
25
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
26 #if !defined (octave_FixedCMatrix_h)
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
27 #define octave_FixedCMatrix_h 1
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
28
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
29 #include <octave/MArray2.h>
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
30
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
31 #include <octave/mx-defs.h>
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
32 #include <octave/mx-op-defs.h>
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
33 #include <octave/data-conv.h>
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
34 #include <octave/mach-info.h>
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
35 #include <octave/boolMatrix.h>
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
36 #include <octave/dMatrix.h>
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
37 #include <octave/CMatrix.h>
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
38
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
39 #include "int/fixed.h"
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
40 #include "fixedMatrix.h"
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
41 #include "fixedComplex.h"
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
42
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
43 #if !defined(octave_FixedCColVector_h)
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
44 class FixedComplexColumnVector;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
45 #endif
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
46 #if !defined(octave_FixedCRowVector_h)
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
47 class FixedComplexRowVector;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
48 #endif
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
49
5248
f8d77845533f Changes for compilation with 3.1.51+
adb014
parents: 4404
diff changeset
50 typedef FixedPointComplex (*fpc_fpc_Mapper)(FixedPointComplex);
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
51
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
52 class
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
53 OCTAVE_FIXED_API
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
54 FixedComplexMatrix : public MArray2<FixedPointComplex>
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
55 {
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
56 public:
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
57
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
58 FixedComplexMatrix (void) : MArray2<FixedPointComplex> () { }
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
59
5655
0924c374b60d Update fixed point code for 3.1.x. Minor bug in test code still present though code seems to work fine
adb014
parents: 5248
diff changeset
60 FixedComplexMatrix (const dim_vector& dv) : MArray2<FixedPointComplex> (dv) { }
0924c374b60d Update fixed point code for 3.1.x. Minor bug in test code still present though code seems to work fine
adb014
parents: 5248
diff changeset
61
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
62 FixedComplexMatrix (int r, int c) : MArray2<FixedPointComplex> (r, c) { }
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
63
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
64 FixedComplexMatrix (int r, int c, const FixedPointComplex val) :
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
65 MArray2<FixedPointComplex> (r, c, val) { }
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
66
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
67 FixedComplexMatrix (const MArray2<int> &is, const MArray2<int> &ds);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
68
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
69 FixedComplexMatrix (const Matrix &is, const Matrix &ds);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
70
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
71 FixedComplexMatrix (const ComplexMatrix &is, const ComplexMatrix &ds);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
72
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
73 FixedComplexMatrix (unsigned int is, unsigned int ds,
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
74 const FixedComplexMatrix& a);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
75
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
76 FixedComplexMatrix (Complex is, Complex ds, const FixedComplexMatrix& a);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
77
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
78 FixedComplexMatrix (const MArray2<int> &is, const MArray2<int> &ds,
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
79 const FixedComplexMatrix& a);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
80
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
81 FixedComplexMatrix (const Matrix &is, const Matrix &ds,
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
82 const FixedComplexMatrix& a);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
83
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
84 FixedComplexMatrix (const ComplexMatrix &is, const ComplexMatrix &ds,
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
85 const FixedComplexMatrix& a);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
86
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
87 FixedComplexMatrix (unsigned int is, unsigned int ds, const FixedMatrix& a);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
88
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
89 FixedComplexMatrix (Complex is, Complex ds, const FixedMatrix& a);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
90
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
91 FixedComplexMatrix (const MArray2<int> &is, const MArray2<int> &ds,
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
92 const FixedMatrix& a);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
93
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
94 FixedComplexMatrix (const Matrix &is, const Matrix &ds,
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
95 const FixedMatrix& a);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
96
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
97 FixedComplexMatrix (const ComplexMatrix &is, const ComplexMatrix &ds,
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
98 const FixedMatrix& a);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
99
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
100 FixedComplexMatrix (unsigned int is, unsigned int ds,
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
101 const ComplexMatrix& a);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
102
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
103 FixedComplexMatrix (Complex is, Complex ds, const ComplexMatrix& a);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
104
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
105 FixedComplexMatrix (const MArray2<int> &is, const MArray2<int> & ds,
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
106 const ComplexMatrix& a);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
107
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
108 FixedComplexMatrix (const Matrix &is, const Matrix & ds,
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
109 const ComplexMatrix& a);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
110
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
111 FixedComplexMatrix (const ComplexMatrix &is, const ComplexMatrix & ds,
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
112 const ComplexMatrix& a);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
113
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
114 FixedComplexMatrix (unsigned int is, unsigned int ds, const Matrix& a);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
115
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
116 FixedComplexMatrix (Complex is, Complex ds, const Matrix& a);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
117
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
118 FixedComplexMatrix (const MArray2<int> &is, const MArray2<int> & ds,
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
119 const Matrix& a);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
120
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
121 FixedComplexMatrix (const Matrix &is, const Matrix & ds, const Matrix& a);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
122
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
123 FixedComplexMatrix (const ComplexMatrix &is, const ComplexMatrix & ds,
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
124 const Matrix& a);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
125
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
126 FixedComplexMatrix (unsigned int is, unsigned int ds,
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
127 const ComplexMatrix &a, const ComplexMatrix &b);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
128
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
129 FixedComplexMatrix (Complex is, Complex ds, const ComplexMatrix &a,
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
130 const ComplexMatrix &b);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
131
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
132 FixedComplexMatrix (const MArray2<int> &is, const MArray2<int> &ds,
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
133 const ComplexMatrix &a, const ComplexMatrix &b);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
134
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
135 FixedComplexMatrix (const Matrix &is, const Matrix &ds,
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
136 const ComplexMatrix &a, const ComplexMatrix &b);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
137
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
138 FixedComplexMatrix (const ComplexMatrix &is, const ComplexMatrix &ds,
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
139 const ComplexMatrix &a, const ComplexMatrix &b);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
140
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
141 FixedComplexMatrix (const FixedMatrix& a);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
142
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
143 FixedComplexMatrix (const FixedMatrix& a, const FixedMatrix& b);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
144
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
145 FixedComplexMatrix (const FixedComplexMatrix& a) :
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
146 MArray2<FixedPointComplex> (a) { }
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
147
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
148 FixedComplexMatrix (const MArray2<FixedPointComplex>& a) :
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
149 MArray2<FixedPointComplex> (a) { }
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
150
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
151 explicit FixedComplexMatrix (const FixedComplexRowVector& rv);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
152
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
153 FixedComplexMatrix (const FixedRowVector& rv);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
154
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
155 explicit FixedComplexMatrix (const FixedComplexColumnVector& cv);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
156
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
157 FixedComplexMatrix (const FixedColumnVector& cv);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
158
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
159 ComplexMatrix sign (void) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
160 ComplexMatrix getdecsize (void) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
161 ComplexMatrix getintsize (void) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
162 ComplexMatrix getnumber (void) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
163 ComplexMatrix fixedpoint (void) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
164 FixedComplexMatrix chdecsize (const Complex n);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
165 FixedComplexMatrix chdecsize (const ComplexMatrix &n);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
166 FixedComplexMatrix chintsize (const Complex n);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
167 FixedComplexMatrix chintsize (const ComplexMatrix &n);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
168 FixedComplexMatrix incdecsize (const Complex n);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
169 FixedComplexMatrix incdecsize (const ComplexMatrix &n);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
170 FixedComplexMatrix incdecsize ();
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
171 FixedComplexMatrix incintsize (const Complex n);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
172 FixedComplexMatrix incintsize (const ComplexMatrix &n);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
173 FixedComplexMatrix incintsize ();
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
174
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
175 FixedComplexMatrix& operator = (const FixedComplexMatrix& a)
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
176 {
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
177 MArray2<FixedPointComplex>::operator = (a);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
178 return *this;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
179 }
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
180
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
181 bool operator == (const FixedComplexMatrix& a) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
182 bool operator != (const FixedComplexMatrix& a) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
183
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
184 bool is_hermitian (void) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
185 bool is_symmetric (void) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
186
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
187 FixedComplexMatrix concat (const FixedComplexMatrix& rb,
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
188 const Array<int>& ra_idx);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
189
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
190 FixedComplexMatrix concat (const FixedMatrix& rb,
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
191 const Array<int>& ra_idx);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
192
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
193 // destructive insert/delete/reorder operations
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
194
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
195 FixedComplexMatrix& insert (const FixedComplexMatrix& a, int r, int c);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
196 FixedComplexMatrix& insert (const FixedComplexRowVector& a, int r, int c);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
197 FixedComplexMatrix& insert (const FixedComplexColumnVector& a, int r, int c);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
198
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
199 FixedComplexMatrix& fill (FixedPointComplex val);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
200 FixedComplexMatrix& fill (FixedPointComplex val, int r1, int c1, int r2, int c2);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
201
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
202 FixedComplexMatrix append (const FixedComplexMatrix& a) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
203 FixedComplexMatrix append (const FixedComplexRowVector& a) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
204 FixedComplexMatrix append (const FixedComplexColumnVector& a) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
205
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
206 FixedComplexMatrix stack (const FixedComplexMatrix& a) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
207 FixedComplexMatrix stack (const FixedComplexRowVector& a) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
208 FixedComplexMatrix stack (const FixedComplexColumnVector& a) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
209
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
210 FixedComplexMatrix hermitian (void) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
211 FixedComplexMatrix transpose (void) const { return MArray2<FixedPointComplex>::transpose (); }
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
212
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
213 // resize is the destructive equivalent for this one
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
214
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
215 FixedComplexMatrix extract (int r1, int c1, int r2, int c2) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
216
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
217 FixedComplexMatrix extract_n (int r1, int c1, int nr, int nc) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
218
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
219 // extract row or column i.
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
220
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
221 FixedComplexRowVector row (int i) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
222 FixedComplexRowVector row (char *s) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
223
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
224 FixedComplexColumnVector column (int i) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
225 FixedComplexColumnVector column (char *s) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
226
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
227 // unary operations
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
228
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
229 FixedComplexMatrix operator ! (void) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
230
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
231 // other operations
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
232
5248
f8d77845533f Changes for compilation with 3.1.51+
adb014
parents: 4404
diff changeset
233 FixedComplexMatrix map (fpc_fpc_Mapper f) const;
f8d77845533f Changes for compilation with 3.1.51+
adb014
parents: 4404
diff changeset
234 FixedComplexMatrix& apply (fpc_fpc_Mapper f);
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
235
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
236 bool all_elements_are_real (void) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
237
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
238 boolMatrix all (int dim = -1) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
239 boolMatrix any (int dim = -1) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
240
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
241 FixedComplexMatrix cumprod (int dim = -1) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
242 FixedComplexMatrix cumsum (int dim = -1) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
243 FixedComplexMatrix prod (int dim = -1) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
244 FixedComplexMatrix sum (int dim = -1) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
245 FixedComplexMatrix sumsq (int dim = -1) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
246 FixedComplexMatrix abs (void) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
247
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
248 FixedComplexColumnVector diag (void) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
249 FixedComplexColumnVector diag (int k) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
250
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
251 FixedComplexColumnVector row_min (void) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
252 FixedComplexColumnVector row_max (void) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
253
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
254 FixedComplexColumnVector row_min (Array<int>& index) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
255 FixedComplexColumnVector row_max (Array<int>& index) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
256
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
257 FixedComplexRowVector column_min (void) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
258 FixedComplexRowVector column_max (void) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
259
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
260 FixedComplexRowVector column_min (Array<int>& index) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
261 FixedComplexRowVector column_max (Array<int>& index) const;
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
262
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
263 friend OCTAVE_FIXED_API FixedComplexMatrix operator * (const FixedComplexColumnVector& a,
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
264 const FixedComplexRowVector& b);
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
265 friend OCTAVE_FIXED_API FixedComplexMatrix operator * (const FixedComplexMatrix& a,
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
266 const FixedComplexMatrix& b);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
267
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
268 friend OCTAVE_FIXED_API FixedMatrix real (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
269 friend OCTAVE_FIXED_API FixedMatrix imag (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
270 friend OCTAVE_FIXED_API FixedComplexMatrix conj (const FixedComplexMatrix &x);
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
271
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
272 friend OCTAVE_FIXED_API FixedMatrix abs (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
273 friend OCTAVE_FIXED_API FixedMatrix norm (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
274 friend OCTAVE_FIXED_API FixedMatrix arg (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
275 friend OCTAVE_FIXED_API FixedComplexMatrix polar (const FixedMatrix &r, const FixedMatrix &p);
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
276
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
277 friend OCTAVE_FIXED_API FixedComplexMatrix cos (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
278 friend OCTAVE_FIXED_API FixedComplexMatrix cosh (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
279 friend OCTAVE_FIXED_API FixedComplexMatrix sin (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
280 friend OCTAVE_FIXED_API FixedComplexMatrix sinh (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
281 friend OCTAVE_FIXED_API FixedComplexMatrix tan (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
282 friend OCTAVE_FIXED_API FixedComplexMatrix tanh (const FixedComplexMatrix &x);
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
283
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
284 friend OCTAVE_FIXED_API FixedComplexMatrix sqrt (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
285 friend OCTAVE_FIXED_API FixedComplexMatrix pow (const FixedComplexMatrix &a, const int b);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
286 friend OCTAVE_FIXED_API FixedComplexMatrix pow (const FixedComplexMatrix &a, const double b);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
287 friend OCTAVE_FIXED_API FixedComplexMatrix pow (const FixedComplexMatrix &a,
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
288 const FixedPointComplex &b);
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
289 friend OCTAVE_FIXED_API FixedComplexMatrix pow (const FixedComplexMatrix &a,
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
290 const FixedComplexMatrix &b);
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
291 friend OCTAVE_FIXED_API FixedComplexMatrix exp (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
292 friend OCTAVE_FIXED_API FixedComplexMatrix log (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
293 friend OCTAVE_FIXED_API FixedComplexMatrix log10 (const FixedComplexMatrix &x);
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
294
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
295 friend OCTAVE_FIXED_API FixedComplexMatrix round (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
296 friend OCTAVE_FIXED_API FixedComplexMatrix rint (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
297 friend OCTAVE_FIXED_API FixedComplexMatrix floor (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
298 friend OCTAVE_FIXED_API FixedComplexMatrix ceil (const FixedComplexMatrix &x);
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
299
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
300 friend OCTAVE_FIXED_API ComplexMatrix fixedpoint (const FixedComplexMatrix& x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
301 friend OCTAVE_FIXED_API ComplexMatrix sign (const FixedComplexMatrix& x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
302 friend OCTAVE_FIXED_API ComplexMatrix getintsize (const FixedComplexMatrix& x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
303 friend OCTAVE_FIXED_API ComplexMatrix getdecsize (const FixedComplexMatrix& x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
304 friend OCTAVE_FIXED_API ComplexMatrix getnumber (const FixedComplexMatrix& x);
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
305
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
306 // i/o
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
307
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
308 friend OCTAVE_FIXED_API std::ostream& operator << (std::ostream& os,
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
309 const FixedComplexMatrix& a);
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
310 friend OCTAVE_FIXED_API std::istream& operator >> (std::istream& is, FixedComplexMatrix& a);
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
311
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
312
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
313 static FixedPointComplex resize_fill_value (void)
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
314 { return FixedPointComplex(); }
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
315
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
316 private:
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
317
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
318 FixedComplexMatrix (FixedPointComplex *d, int r, int c) :
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
319 MArray2<FixedPointComplex> (d, r, c) { }
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
320 };
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
321
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
322 OCTAVE_FIXED_API FixedComplexMatrix operator * (const FixedComplexColumnVector& a,
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
323 const FixedComplexRowVector& b);
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
324 OCTAVE_FIXED_API FixedComplexMatrix operator * (const FixedComplexMatrix& a,
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
325 const FixedComplexMatrix& b);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
326
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
327 OCTAVE_FIXED_API FixedMatrix real (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
328 OCTAVE_FIXED_API FixedMatrix imag (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
329 OCTAVE_FIXED_API FixedComplexMatrix conj (const FixedComplexMatrix &x);
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
330
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
331 OCTAVE_FIXED_API FixedMatrix abs (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
332 OCTAVE_FIXED_API FixedMatrix norm (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
333 OCTAVE_FIXED_API FixedMatrix arg (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
334 OCTAVE_FIXED_API FixedComplexMatrix polar (const FixedMatrix &r, const FixedMatrix &p);
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
335
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
336 OCTAVE_FIXED_API FixedComplexMatrix cos (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
337 OCTAVE_FIXED_API FixedComplexMatrix cosh (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
338 OCTAVE_FIXED_API FixedComplexMatrix sin (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
339 OCTAVE_FIXED_API FixedComplexMatrix sinh (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
340 OCTAVE_FIXED_API FixedComplexMatrix tan (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
341 OCTAVE_FIXED_API FixedComplexMatrix tanh (const FixedComplexMatrix &x);
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
342
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
343 OCTAVE_FIXED_API FixedComplexMatrix sqrt (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
344 OCTAVE_FIXED_API FixedComplexMatrix pow (const FixedComplexMatrix &a, const int b);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
345 OCTAVE_FIXED_API FixedComplexMatrix pow (const FixedComplexMatrix &a, const double b);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
346 OCTAVE_FIXED_API FixedComplexMatrix pow (const FixedComplexMatrix &a,
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
347 const FixedPointComplex &b);
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
348 OCTAVE_FIXED_API FixedComplexMatrix pow (const FixedComplexMatrix &a,
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
349 const FixedComplexMatrix &b);
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
350 OCTAVE_FIXED_API FixedComplexMatrix exp (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
351 OCTAVE_FIXED_API FixedComplexMatrix log (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
352 OCTAVE_FIXED_API FixedComplexMatrix log10 (const FixedComplexMatrix &x);
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
353
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
354 OCTAVE_FIXED_API FixedComplexMatrix round (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
355 OCTAVE_FIXED_API FixedComplexMatrix rint (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
356 OCTAVE_FIXED_API FixedComplexMatrix floor (const FixedComplexMatrix &x);
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
357 OCTAVE_FIXED_API FixedComplexMatrix ceil (const FixedComplexMatrix &x);
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
358
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
359 inline ComplexMatrix fixedpoint (const FixedComplexMatrix& x)
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
360 { return x.fixedpoint(); }
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
361 inline ComplexMatrix sign (const FixedComplexMatrix& x)
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
362 { return x.sign(); }
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
363 inline ComplexMatrix getintsize (const FixedComplexMatrix& x)
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
364 { return x.getintsize(); }
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
365 inline ComplexMatrix getdecsize (const FixedComplexMatrix& x)
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
366 { return x.getdecsize(); }
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
367 inline ComplexMatrix getnumber (const FixedComplexMatrix& x)
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
368 { return x.getnumber(); }
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
369
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
370 OCTAVE_FIXED_API std::ostream& operator << (std::ostream& os,
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
371 const FixedComplexMatrix& a);
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
372 OCTAVE_FIXED_API std::istream& operator >> (std::istream& is, FixedComplexMatrix& a);
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
373
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
374
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
375 OCTAVE_FIXED_API FixedComplexMatrix min (FixedPointComplex d,
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
376 const FixedComplexMatrix& m);
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
377 OCTAVE_FIXED_API FixedComplexMatrix min (const FixedComplexMatrix& m,
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
378 FixedPointComplex d);
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
379 OCTAVE_FIXED_API FixedComplexMatrix min (const FixedComplexMatrix& a,
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
380 const FixedComplexMatrix& b);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
381
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
382 OCTAVE_FIXED_API FixedComplexMatrix max (FixedPointComplex d,
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
383 const FixedComplexMatrix& m);
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
384 OCTAVE_FIXED_API FixedComplexMatrix max (const FixedComplexMatrix& m,
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
385 FixedPointComplex d);
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
386 OCTAVE_FIXED_API FixedComplexMatrix max (const FixedComplexMatrix& a,
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
387 const FixedComplexMatrix& b);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
388
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
389 OCTAVE_FIXED_API FixedComplexMatrix elem_pow (const FixedComplexMatrix &a,
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
390 const FixedComplexMatrix &b);
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
391 OCTAVE_FIXED_API FixedComplexMatrix elem_pow (const FixedComplexMatrix &a,
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
392 const FixedPointComplex &b);
3065
c9748be75a06 Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents: 2394
diff changeset
393 OCTAVE_FIXED_API FixedComplexMatrix elem_pow (const FixedPointComplex &a,
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
394 const FixedComplexMatrix &b);
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
395
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
396
3645
529c00d3210c upgrade to newer macro API in octave
goffioul
parents: 3272
diff changeset
397 MS_CMP_OP_DECLS (FixedComplexMatrix, FixedPointComplex, )
529c00d3210c upgrade to newer macro API in octave
goffioul
parents: 3272
diff changeset
398 MS_BOOL_OP_DECLS (FixedComplexMatrix, FixedPointComplex, )
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
399
3645
529c00d3210c upgrade to newer macro API in octave
goffioul
parents: 3272
diff changeset
400 SM_CMP_OP_DECLS (FixedPointComplex, FixedComplexMatrix, )
529c00d3210c upgrade to newer macro API in octave
goffioul
parents: 3272
diff changeset
401 SM_BOOL_OP_DECLS (FixedPointComplex, FixedComplexMatrix, )
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
402
3645
529c00d3210c upgrade to newer macro API in octave
goffioul
parents: 3272
diff changeset
403 MM_CMP_OP_DECLS (FixedComplexMatrix, FixedComplexMatrix, )
529c00d3210c upgrade to newer macro API in octave
goffioul
parents: 3272
diff changeset
404 MM_BOOL_OP_DECLS (FixedComplexMatrix, FixedComplexMatrix, )
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
405
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
406 MARRAY_FORWARD_DEFS (MArray2, FixedComplexMatrix, FixedPointComplex)
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
407
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
408 #endif
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
409
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
410 /*
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
411 ;;; Local Variables: ***
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
412 ;;; mode: C++ ***
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
413 ;;; End: ***
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
414 */