Mercurial > octave-nkf
annotate src/xpow.h @ 12312:b10ea6efdc58 release-3-4-x ss-3-3-91
version is now 3.3.91
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 31 Jan 2011 08:36:58 -0500 |
parents | fd0a3ac60b0e |
children | 70d32160c90b |
rev | line source |
---|---|
1 | 1 /* |
2 | |
11523 | 3 Copyright (C) 1993-2011 John W. Eaton |
1 | 4 |
5 This file is part of Octave. | |
6 | |
7 Octave is free software; you can redistribute it and/or modify it | |
8 under the terms of the GNU General Public License as published by the | |
7016 | 9 Free Software Foundation; either version 3 of the License, or (at your |
10 option) any later version. | |
1 | 11 |
12 Octave is distributed in the hope that it will be useful, but WITHOUT | |
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
15 for more details. | |
16 | |
17 You should have received a copy of the GNU General Public License | |
7016 | 18 along with Octave; see the file COPYING. If not, see |
19 <http://www.gnu.org/licenses/>. | |
1 | 20 |
21 */ | |
22 | |
383 | 23 #if !defined (octave_xpow_h) |
24 #define octave_xpow_h 1 | |
1 | 25 |
1651 | 26 #include "oct-cmplx.h" |
27 | |
164 | 28 class Matrix; |
29 class ComplexMatrix; | |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
30 class FloatMatrix; |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
31 class FloatComplexMatrix; |
8382
9b20a4847056
implement scalar powers of diag matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
32 class DiagMatrix; |
9b20a4847056
implement scalar powers of diag matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
33 class ComplexDiagMatrix; |
9b20a4847056
implement scalar powers of diag matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
34 class FloatDiagMatrix; |
9b20a4847056
implement scalar powers of diag matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
35 class FloatComplexDiagMatrix; |
8958
6ccc12cc65ef
implement raising a permutation matrix to integer power
Jaroslav Hajek <highegg@gmail.com>
parents:
8920
diff
changeset
|
36 class PermMatrix; |
8382
9b20a4847056
implement scalar powers of diag matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
37 class NDArray; |
9b20a4847056
implement scalar powers of diag matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
38 class FloatNDArray; |
9b20a4847056
implement scalar powers of diag matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
39 class ComplexNDArray; |
9b20a4847056
implement scalar powers of diag matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
40 class FloatComplexNDArray; |
2086 | 41 class octave_value; |
9103
10bed8fbec99
optimize scalar .^ range operation
Jaroslav Hajek <highegg@gmail.com>
parents:
8960
diff
changeset
|
42 class Range; |
1 | 43 |
2086 | 44 extern octave_value xpow (double a, double b); |
45 extern octave_value xpow (double a, const Matrix& b); | |
46 extern octave_value xpow (double a, const Complex& b); | |
47 extern octave_value xpow (double a, const ComplexMatrix& b); | |
1 | 48 |
2086 | 49 extern octave_value xpow (const Matrix& a, double b); |
50 extern octave_value xpow (const Matrix& a, const Complex& b); | |
1 | 51 |
8382
9b20a4847056
implement scalar powers of diag matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
52 extern octave_value xpow (const DiagMatrix& a, double b); |
9b20a4847056
implement scalar powers of diag matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
53 extern octave_value xpow (const DiagMatrix& a, const Complex& b); |
9b20a4847056
implement scalar powers of diag matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
54 |
8958
6ccc12cc65ef
implement raising a permutation matrix to integer power
Jaroslav Hajek <highegg@gmail.com>
parents:
8920
diff
changeset
|
55 extern octave_value xpow (const PermMatrix& a, double b); |
6ccc12cc65ef
implement raising a permutation matrix to integer power
Jaroslav Hajek <highegg@gmail.com>
parents:
8920
diff
changeset
|
56 |
2086 | 57 extern octave_value xpow (const Complex& a, double b); |
58 extern octave_value xpow (const Complex& a, const Matrix& b); | |
59 extern octave_value xpow (const Complex& a, const Complex& b); | |
60 extern octave_value xpow (const Complex& a, const ComplexMatrix& b); | |
1 | 61 |
2086 | 62 extern octave_value xpow (const ComplexMatrix& a, double b); |
63 extern octave_value xpow (const ComplexMatrix& a, const Complex& b); | |
1 | 64 |
8382
9b20a4847056
implement scalar powers of diag matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
65 extern octave_value xpow (const ComplexDiagMatrix& a, double b); |
9b20a4847056
implement scalar powers of diag matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
66 extern octave_value xpow (const ComplexDiagMatrix& a, const Complex& b); |
9b20a4847056
implement scalar powers of diag matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
67 |
2086 | 68 extern octave_value elem_xpow (double a, const Matrix& b); |
69 extern octave_value elem_xpow (double a, const ComplexMatrix& b); | |
9103
10bed8fbec99
optimize scalar .^ range operation
Jaroslav Hajek <highegg@gmail.com>
parents:
8960
diff
changeset
|
70 extern octave_value elem_xpow (double a, const Range& r); |
1 | 71 |
2086 | 72 extern octave_value elem_xpow (const Matrix& a, double b); |
73 extern octave_value elem_xpow (const Matrix& a, const Matrix& b); | |
74 extern octave_value elem_xpow (const Matrix& a, const Complex& b); | |
75 extern octave_value elem_xpow (const Matrix& a, const ComplexMatrix& b); | |
1 | 76 |
2086 | 77 extern octave_value elem_xpow (const Complex& a, const Matrix& b); |
78 extern octave_value elem_xpow (const Complex& a, const ComplexMatrix& b); | |
9103
10bed8fbec99
optimize scalar .^ range operation
Jaroslav Hajek <highegg@gmail.com>
parents:
8960
diff
changeset
|
79 extern octave_value elem_xpow (const Complex& a, const Range& r); |
1 | 80 |
2086 | 81 extern octave_value elem_xpow (const ComplexMatrix& a, double b); |
82 extern octave_value elem_xpow (const ComplexMatrix& a, const Matrix& b); | |
83 extern octave_value elem_xpow (const ComplexMatrix& a, const Complex& b); | |
4188 | 84 extern octave_value elem_xpow (const ComplexMatrix& a, const ComplexMatrix& b); |
1 | 85 |
4543 | 86 |
87 extern octave_value elem_xpow (double a, const NDArray& b); | |
88 extern octave_value elem_xpow (double a, const ComplexNDArray& b); | |
89 | |
90 extern octave_value elem_xpow (const NDArray& a, double b); | |
91 extern octave_value elem_xpow (const NDArray& a, const NDArray& b); | |
92 extern octave_value elem_xpow (const NDArray& a, const Complex& b); | |
93 extern octave_value elem_xpow (const NDArray& a, const ComplexNDArray& b); | |
94 | |
95 extern octave_value elem_xpow (const Complex& a, const NDArray& b); | |
96 extern octave_value elem_xpow (const Complex& a, const ComplexNDArray& b); | |
97 | |
98 extern octave_value elem_xpow (const ComplexNDArray& a, double b); | |
99 extern octave_value elem_xpow (const ComplexNDArray& a, const NDArray& b); | |
100 extern octave_value elem_xpow (const ComplexNDArray& a, const Complex& b); | |
101 extern octave_value elem_xpow (const ComplexNDArray& a, const ComplexNDArray& b); | |
102 | |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
103 extern octave_value xpow (float a, float b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
104 extern octave_value xpow (float a, const FloatMatrix& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
105 extern octave_value xpow (float a, const FloatComplex& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
106 extern octave_value xpow (float a, const FloatComplexMatrix& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
107 |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
108 extern octave_value xpow (const FloatMatrix& a, float b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
109 extern octave_value xpow (const FloatMatrix& a, const FloatComplex& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
110 |
8382
9b20a4847056
implement scalar powers of diag matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
111 extern octave_value xpow (const FloatDiagMatrix& a, float b); |
9b20a4847056
implement scalar powers of diag matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
112 extern octave_value xpow (const FloatDiagMatrix& a, const FloatComplex& b); |
9b20a4847056
implement scalar powers of diag matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
113 |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
114 extern octave_value xpow (const FloatComplex& a, float b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
115 extern octave_value xpow (const FloatComplex& a, const FloatMatrix& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
116 extern octave_value xpow (const FloatComplex& a, const FloatComplex& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
117 extern octave_value xpow (const FloatComplex& a, const FloatComplexMatrix& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
118 |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
119 extern octave_value xpow (const FloatComplexMatrix& a, float b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
120 extern octave_value xpow (const FloatComplexMatrix& a, const FloatComplex& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
121 |
8382
9b20a4847056
implement scalar powers of diag matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
122 extern octave_value xpow (const FloatComplexDiagMatrix& a, float b); |
9b20a4847056
implement scalar powers of diag matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
123 extern octave_value xpow (const FloatComplexDiagMatrix& a, const FloatComplex& b); |
9b20a4847056
implement scalar powers of diag matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
7789
diff
changeset
|
124 |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
125 extern octave_value elem_xpow (float a, const FloatMatrix& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
126 extern octave_value elem_xpow (float a, const FloatComplexMatrix& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
127 |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
128 extern octave_value elem_xpow (const FloatMatrix& a, float b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
129 extern octave_value elem_xpow (const FloatMatrix& a, const FloatMatrix& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
130 extern octave_value elem_xpow (const FloatMatrix& a, const FloatComplex& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
131 extern octave_value elem_xpow (const FloatMatrix& a, const FloatComplexMatrix& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
132 |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
133 extern octave_value elem_xpow (const FloatComplex& a, const FloatMatrix& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
134 extern octave_value elem_xpow (const FloatComplex& a, const FloatComplexMatrix& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
135 |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
136 extern octave_value elem_xpow (const FloatComplexMatrix& a, float b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
137 extern octave_value elem_xpow (const FloatComplexMatrix& a, const FloatMatrix& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
138 extern octave_value elem_xpow (const FloatComplexMatrix& a, const FloatComplex& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
139 extern octave_value elem_xpow (const FloatComplexMatrix& a, const FloatComplexMatrix& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
140 |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
141 |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
142 extern octave_value elem_xpow (float a, const FloatNDArray& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
143 extern octave_value elem_xpow (float a, const FloatComplexNDArray& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
144 |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
145 extern octave_value elem_xpow (const FloatNDArray& a, float b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
146 extern octave_value elem_xpow (const FloatNDArray& a, const FloatNDArray& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
147 extern octave_value elem_xpow (const FloatNDArray& a, const FloatComplex& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
148 extern octave_value elem_xpow (const FloatNDArray& a, const FloatComplexNDArray& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
149 |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
150 extern octave_value elem_xpow (const FloatComplex& a, const FloatNDArray& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
151 extern octave_value elem_xpow (const FloatComplex& a, const FloatComplexNDArray& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
152 |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
153 extern octave_value elem_xpow (const FloatComplexNDArray& a, float b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
154 extern octave_value elem_xpow (const FloatComplexNDArray& a, const FloatNDArray& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
155 extern octave_value elem_xpow (const FloatComplexNDArray& a, const FloatComplex& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
156 extern octave_value elem_xpow (const FloatComplexNDArray& a, const FloatComplexNDArray& b); |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
157 |
1 | 158 #endif |