Mercurial > octave
annotate liboctave/numeric/oct-convn.h @ 31606:dfa5d9c3ae72
maint: merge stable to default
author | Rik <rik@octave.org> |
---|---|
date | Thu, 01 Dec 2022 14:28:07 -0800 |
parents | 9a0ce9eea1b7 e88a07dec498 |
children | 23664317f0d3 |
rev | line source |
---|---|
27923
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
1 //////////////////////////////////////////////////////////////////////// |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
2 // |
30564
796f54d4ddbf
update Octave Project Developers copyright for the new year
John W. Eaton <jwe@octave.org>
parents:
30508
diff
changeset
|
3 // Copyright (C) 2009-2022 The Octave Project Developers |
27923
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
4 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
5 // See the file COPYRIGHT.md in the top-level directory of this |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
6 // distribution or <https://octave.org/copyright/>. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
7 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
8 // This file is part of Octave. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
9 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
10 // Octave is free software: you can redistribute it and/or modify it |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
11 // under the terms of the GNU General Public License as published by |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
12 // the Free Software Foundation, either version 3 of the License, or |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
13 // (at your option) any later version. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
14 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
15 // Octave is distributed in the hope that it will be useful, but |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
16 // WITHOUT ANY WARRANTY; without even the implied warranty of |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
18 // GNU General Public License for more details. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
19 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
20 // You should have received a copy of the GNU General Public License |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
21 // along with Octave; see the file COPYING. If not, see |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
22 // <https://www.gnu.org/licenses/>. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
23 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
24 //////////////////////////////////////////////////////////////////////// |
10385
56116dceb1e0
add omitted source from the last change
Jaroslav Hajek <highegg@gmail.com>
parents:
diff
changeset
|
25 |
20791
f7084eae3318
maint: Use Octave coding conventions for #if statements.
Rik <rik@octave.org>
parents:
19697
diff
changeset
|
26 #if ! defined (octave_oct_convn_h) |
17822
ebb3ef964372
maint: Use common #define syntax "octave_filename_h" in h_files.
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
27 #define octave_oct_convn_h 1 |
10385
56116dceb1e0
add omitted source from the last change
Jaroslav Hajek <highegg@gmail.com>
parents:
diff
changeset
|
28 |
21244
1473547f50f5
include octave-config.h in public header files
John W. Eaton <jwe@octave.org>
parents:
20791
diff
changeset
|
29 #include "octave-config.h" |
1473547f50f5
include octave-config.h in public header files
John W. Eaton <jwe@octave.org>
parents:
20791
diff
changeset
|
30 |
30508
6f07492c9c20
Provide header file with forward declarations of matrix types (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30394
diff
changeset
|
31 #include "mx-fwd.h" |
10385
56116dceb1e0
add omitted source from the last change
Jaroslav Hajek <highegg@gmail.com>
parents:
diff
changeset
|
32 |
29876
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
33 // The remaining includes can be removed when the global enum |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
34 // declaration, the convert_enum function, and the deprecated functions |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
35 // at the end of this file are removed. |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
36 |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
37 #include <cstdlib> |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
38 #include "dMatrix.h" |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
39 #include "dNDArray.h" |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
40 #include "CMatrix.h" |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
41 #include "CNDArray.h" |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
42 #include "fMatrix.h" |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
43 #include "fNDArray.h" |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
44 #include "fCMatrix.h" |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
45 #include "fCNDArray.h" |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
46 |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
47 // FIXME: Is there any sane way to move a global enum to a namespace and |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
48 // tag the global one as deprecated when it is used as a parameter in |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
49 // public functions that also need to be tagged as deprecated? |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
50 |
10385
56116dceb1e0
add omitted source from the last change
Jaroslav Hajek <highegg@gmail.com>
parents:
diff
changeset
|
51 enum convn_type |
30394
f3f3e3793fb5
maint: style check C++ files in liboctave/ ahead of 7.1 release.
Rik <rik@octave.org>
parents:
29954
diff
changeset
|
52 { |
f3f3e3793fb5
maint: style check C++ files in liboctave/ ahead of 7.1 release.
Rik <rik@octave.org>
parents:
29954
diff
changeset
|
53 convn_full, |
f3f3e3793fb5
maint: style check C++ files in liboctave/ ahead of 7.1 release.
Rik <rik@octave.org>
parents:
29954
diff
changeset
|
54 convn_same, |
f3f3e3793fb5
maint: style check C++ files in liboctave/ ahead of 7.1 release.
Rik <rik@octave.org>
parents:
29954
diff
changeset
|
55 convn_valid |
f3f3e3793fb5
maint: style check C++ files in liboctave/ ahead of 7.1 release.
Rik <rik@octave.org>
parents:
29954
diff
changeset
|
56 }; |
f3f3e3793fb5
maint: style check C++ files in liboctave/ ahead of 7.1 release.
Rik <rik@octave.org>
parents:
29954
diff
changeset
|
57 |
31605
e88a07dec498
maint: Use macros to begin/end C++ namespaces.
Rik <rik@octave.org>
parents:
30564
diff
changeset
|
58 OCTAVE_BEGIN_NAMESPACE(octave) |
e88a07dec498
maint: Use macros to begin/end C++ namespaces.
Rik <rik@octave.org>
parents:
30564
diff
changeset
|
59 |
30394
f3f3e3793fb5
maint: style check C++ files in liboctave/ ahead of 7.1 release.
Rik <rik@octave.org>
parents:
29954
diff
changeset
|
60 enum convn_type |
29876
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
61 { |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
62 convn_full, |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
63 convn_same, |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
64 convn_valid |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
65 }; |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
66 |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
67 // double real X double real |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
68 |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
69 extern OCTAVE_API NDArray |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
70 convn (const NDArray& a, const NDArray& b, convn_type ct); |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
71 |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
72 extern OCTAVE_API Matrix |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
73 convn (const Matrix& a, const Matrix& b, convn_type ct); |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
74 |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
75 extern OCTAVE_API Matrix |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
76 convn (const Matrix& a, const ColumnVector& c, const RowVector& r, |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
77 convn_type ct); |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
78 |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
79 // double complex X double real |
10385
56116dceb1e0
add omitted source from the last change
Jaroslav Hajek <highegg@gmail.com>
parents:
diff
changeset
|
80 |
29876
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
81 extern OCTAVE_API ComplexNDArray |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
82 convn (const ComplexNDArray& a, const NDArray& b, convn_type ct); |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
83 |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
84 extern OCTAVE_API ComplexMatrix |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
85 convn (const ComplexMatrix& a, const Matrix& b, convn_type ct); |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
86 |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
87 extern OCTAVE_API ComplexMatrix |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
88 convn (const ComplexMatrix& a, const ColumnVector& c, const RowVector& r, |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
89 convn_type ct); |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
90 |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
91 // double complex X double complex |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
92 |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
93 extern OCTAVE_API ComplexNDArray |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
94 convn (const ComplexNDArray& a, const ComplexNDArray& b, convn_type ct); |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
95 |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
96 extern OCTAVE_API ComplexMatrix |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
97 convn (const ComplexMatrix& a, const ComplexMatrix& b, convn_type ct); |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
98 |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
99 extern OCTAVE_API ComplexMatrix |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
100 convn (const ComplexMatrix& a, const ComplexColumnVector& c, |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
101 const ComplexRowVector& r, convn_type ct); |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
102 |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
103 // float real X float real |
29875
9f7132a05682
eliminate macros and unnecessary include statements in oct-convn.h
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
104 |
29876
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
105 extern OCTAVE_API FloatNDArray |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
106 convn (const FloatNDArray& a, const FloatNDArray& b, convn_type ct); |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
107 |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
108 extern OCTAVE_API FloatMatrix |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
109 convn (const FloatMatrix& a, const FloatMatrix& b, convn_type ct); |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
110 |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
111 extern OCTAVE_API FloatMatrix |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
112 convn (const FloatMatrix& a, const FloatColumnVector& c, |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
113 const FloatRowVector& r, convn_type ct); |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
114 |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
115 // float complex X float real |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
116 |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
117 extern OCTAVE_API FloatComplexNDArray |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
118 convn (const FloatComplexNDArray& a, const FloatNDArray& b, convn_type ct); |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
119 |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
120 extern OCTAVE_API FloatComplexMatrix |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
121 convn (const FloatComplexMatrix& a, const FloatMatrix& b, convn_type ct); |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
122 |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
123 extern OCTAVE_API FloatComplexMatrix |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
124 convn (const FloatComplexMatrix& a, const FloatColumnVector& c, |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
125 const FloatRowVector& r, convn_type ct); |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
126 |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
127 // float complex X float complex |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
128 |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
129 extern OCTAVE_API FloatComplexNDArray |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
130 convn (const FloatComplexNDArray& a, const FloatComplexNDArray& b, |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
131 convn_type ct); |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
132 |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
133 extern OCTAVE_API FloatComplexMatrix |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
134 convn (const FloatComplexMatrix& a, const FloatComplexMatrix& b, |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
135 convn_type ct); |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
136 |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
137 extern OCTAVE_API FloatComplexMatrix |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
138 convn (const FloatComplexMatrix& a, const FloatComplexColumnVector& c, |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
139 const FloatComplexRowVector& r, convn_type ct); |
29875
9f7132a05682
eliminate macros and unnecessary include statements in oct-convn.h
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
140 |
29876
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
141 convn_type convert_enum (::convn_type ct) |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
142 { |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
143 switch (ct) |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
144 { |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
145 case ::convn_full: |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
146 return convn_full; |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
147 |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
148 case ::convn_same: |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
149 return convn_same; |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
150 |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
151 case ::convn_valid: |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
152 return convn_valid; |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
153 |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
154 default: |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
155 abort (); |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
156 } |
89bdb44db76f
move liboctave convn functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents:
29875
diff
changeset
|
157 } |
31605
e88a07dec498
maint: Use macros to begin/end C++ namespaces.
Rik <rik@octave.org>
parents:
30564
diff
changeset
|
158 |
e88a07dec498
maint: Use macros to begin/end C++ namespaces.
Rik <rik@octave.org>
parents:
30564
diff
changeset
|
159 OCTAVE_END_NAMESPACE(octave) |
29875
9f7132a05682
eliminate macros and unnecessary include statements in oct-convn.h
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
160 |
29954
4c88a452519c
rename OCTAVE_USE_DEPRECATED_FUNCTIONS macro and attempt to make it work
John W. Eaton <jwe@octave.org>
parents:
29876
diff
changeset
|
161 #endif |