GNU Octave
4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
xpow.h
Go to the documentation of this file.
1
/*
2
3
Copyright (C) 1993-2018 John W. Eaton
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
9
the Free Software Foundation, either version 3 of the License, or
10
(at your option) any later version.
11
12
Octave is distributed in the hope that it will be useful, but
13
WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with Octave; see the file COPYING. If not, see
19
<https://www.gnu.org/licenses/>.
20
21
*/
22
23
#if ! defined (octave_xpow_h)
24
#define octave_xpow_h 1
25
26
#include "octave-config.h"
27
28
#include "
oct-cmplx.h
"
29
30
class
Matrix
;
31
class
ComplexMatrix
;
32
class
FloatMatrix
;
33
class
FloatComplexMatrix
;
34
class
DiagMatrix
;
35
class
ComplexDiagMatrix
;
36
class
FloatDiagMatrix
;
37
class
FloatComplexDiagMatrix
;
38
class
PermMatrix
;
39
class
NDArray
;
40
class
FloatNDArray
;
41
class
ComplexNDArray
;
42
class
FloatComplexNDArray
;
43
class
octave_value
;
44
class
Range
;
45
46
extern
OCTINTERP_API
octave_value
xpow
(
double
a
,
double
b
);
47
extern
OCTINTERP_API
octave_value
xpow
(
double
a
,
const
Matrix
&
b
);
48
extern
OCTINTERP_API
octave_value
xpow
(
double
a
,
const
Complex
&
b
);
49
extern
OCTINTERP_API
octave_value
xpow
(
double
a
,
const
ComplexMatrix
&
b
);
50
51
extern
OCTINTERP_API
octave_value
xpow
(
const
Matrix
&
a
,
double
b
);
52
extern
OCTINTERP_API
octave_value
xpow
(
const
Matrix
&
a
,
const
Complex
&
b
);
53
54
extern
OCTINTERP_API
octave_value
xpow
(
const
DiagMatrix
&
a
,
double
b
);
55
extern
OCTINTERP_API
octave_value
xpow
(
const
DiagMatrix
&
a
,
const
Complex
&
b
);
56
57
extern
OCTINTERP_API
octave_value
xpow
(
const
PermMatrix
&
a
,
double
b
);
58
59
extern
OCTINTERP_API
octave_value
xpow
(
const
Complex
&
a
,
double
b
);
60
extern
OCTINTERP_API
octave_value
xpow
(
const
Complex
&
a
,
const
Matrix
&
b
);
61
extern
OCTINTERP_API
octave_value
xpow
(
const
Complex
&
a
,
const
Complex
&
b
);
62
extern
OCTINTERP_API
octave_value
xpow
(
const
Complex
&
a
,
63
const
ComplexMatrix
&
b
);
64
65
extern
OCTINTERP_API
octave_value
xpow
(
const
ComplexMatrix
&
a
,
double
b
);
66
extern
OCTINTERP_API
octave_value
xpow
(
const
ComplexMatrix
&
a
,
67
const
Complex
&
b
);
68
69
extern
OCTINTERP_API
octave_value
xpow
(
const
ComplexDiagMatrix
&
a
,
double
b
);
70
extern
OCTINTERP_API
octave_value
xpow
(
const
ComplexDiagMatrix
&
a
,
71
const
Complex
&
b
);
72
73
extern
OCTINTERP_API
octave_value
elem_xpow
(
double
a
,
const
Matrix
&
b
);
74
extern
OCTINTERP_API
octave_value
elem_xpow
(
double
a
,
const
ComplexMatrix
&
b
);
75
extern
OCTINTERP_API
octave_value
elem_xpow
(
double
a
,
const
Range
& r);
76
77
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
Matrix
&
a
,
double
b
);
78
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
Matrix
&
a
,
const
Matrix
&
b
);
79
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
Matrix
&
a
,
const
Complex
&
b
);
80
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
Matrix
&
a
,
81
const
ComplexMatrix
&
b
);
82
83
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
Complex
&
a
,
const
Matrix
&
b
);
84
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
Complex
&
a
,
85
const
ComplexMatrix
&
b
);
86
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
Complex
&
a
,
const
Range
& r);
87
88
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
ComplexMatrix
&
a
,
double
b
);
89
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
ComplexMatrix
&
a
,
90
const
Matrix
&
b
);
91
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
ComplexMatrix
&
a
,
92
const
Complex
&
b
);
93
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
ComplexMatrix
&
a
,
94
const
ComplexMatrix
&
b
);
95
96
extern
OCTINTERP_API
octave_value
elem_xpow
(
double
a
,
const
NDArray
&
b
);
97
extern
OCTINTERP_API
octave_value
elem_xpow
(
double
a
,
const
ComplexNDArray
&
b
);
98
99
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
NDArray
&
a
,
double
b
);
100
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
NDArray
&
a
,
101
const
NDArray
&
b
);
102
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
NDArray
&
a
,
103
const
Complex
&
b
);
104
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
NDArray
&
a
,
105
const
ComplexNDArray
&
b
);
106
107
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
Complex
&
a
,
108
const
NDArray
&
b
);
109
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
Complex
&
a
,
110
const
ComplexNDArray
&
b
);
111
112
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
ComplexNDArray
&
a
,
113
double
b
);
114
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
ComplexNDArray
&
a
,
115
const
NDArray
&
b
);
116
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
ComplexNDArray
&
a
,
117
const
Complex
&
b
);
118
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
ComplexNDArray
&
a
,
119
const
ComplexNDArray
&
b
);
120
121
extern
OCTINTERP_API
octave_value
xpow
(
float
a
,
float
b
);
122
extern
OCTINTERP_API
octave_value
xpow
(
float
a
,
const
FloatMatrix
&
b
);
123
extern
OCTINTERP_API
octave_value
xpow
(
float
a
,
const
FloatComplex
&
b
);
124
extern
OCTINTERP_API
octave_value
xpow
(
float
a
,
const
FloatComplexMatrix
&
b
);
125
126
extern
OCTINTERP_API
octave_value
xpow
(
const
FloatMatrix
&
a
,
float
b
);
127
extern
OCTINTERP_API
octave_value
xpow
(
const
FloatMatrix
&
a
,
128
const
FloatComplex
&
b
);
129
130
extern
OCTINTERP_API
octave_value
xpow
(
const
FloatDiagMatrix
&
a
,
float
b
);
131
extern
OCTINTERP_API
octave_value
xpow
(
const
FloatDiagMatrix
&
a
,
132
const
FloatComplex
&
b
);
133
134
extern
OCTINTERP_API
octave_value
xpow
(
const
FloatComplex
&
a
,
float
b
);
135
extern
OCTINTERP_API
octave_value
xpow
(
const
FloatComplex
&
a
,
136
const
FloatMatrix
&
b
);
137
extern
OCTINTERP_API
octave_value
xpow
(
const
FloatComplex
&
a
,
138
const
FloatComplex
&
b
);
139
extern
OCTINTERP_API
octave_value
xpow
(
const
FloatComplex
&
a
,
140
const
FloatComplexMatrix
&
b
);
141
142
extern
OCTINTERP_API
octave_value
xpow
(
const
FloatComplexMatrix
&
a
,
float
b
);
143
extern
OCTINTERP_API
octave_value
xpow
(
const
FloatComplexMatrix
&
a
,
144
const
FloatComplex
&
b
);
145
146
extern
OCTINTERP_API
octave_value
xpow
(
const
FloatComplexDiagMatrix
&
a
,
147
float
b
);
148
extern
OCTINTERP_API
octave_value
xpow
(
const
FloatComplexDiagMatrix
&
a
,
149
const
FloatComplex
&
b
);
150
151
extern
OCTINTERP_API
octave_value
elem_xpow
(
float
a
,
const
FloatMatrix
&
b
);
152
extern
OCTINTERP_API
octave_value
elem_xpow
(
float
a
,
153
const
FloatComplexMatrix
&
b
);
154
155
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
FloatMatrix
&
a
,
float
b
);
156
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
FloatMatrix
&
a
,
157
const
FloatMatrix
&
b
);
158
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
FloatMatrix
&
a
,
159
const
FloatComplex
&
b
);
160
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
FloatMatrix
&
a
,
161
const
FloatComplexMatrix
&
b
);
162
163
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
FloatComplex
&
a
,
164
const
FloatMatrix
&
b
);
165
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
FloatComplex
&
a
,
166
const
FloatComplexMatrix
&
b
);
167
168
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
FloatComplexMatrix
&
a
,
169
float
b
);
170
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
FloatComplexMatrix
&
a
,
171
const
FloatMatrix
&
b
);
172
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
FloatComplexMatrix
&
a
,
173
const
FloatComplex
&
b
);
174
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
FloatComplexMatrix
&
a
,
175
const
FloatComplexMatrix
&
b
);
176
177
extern
OCTINTERP_API
octave_value
elem_xpow
(
float
a
,
const
FloatNDArray
&
b
);
178
extern
OCTINTERP_API
octave_value
elem_xpow
(
float
a
,
179
const
FloatComplexNDArray
&
b
);
180
181
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
FloatNDArray
&
a
,
float
b
);
182
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
FloatNDArray
&
a
,
183
const
FloatNDArray
&
b
);
184
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
FloatNDArray
&
a
,
185
const
FloatComplex
&
b
);
186
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
FloatNDArray
&
a
,
187
const
FloatComplexNDArray
&
b
);
188
189
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
FloatComplex
&
a
,
190
const
FloatNDArray
&
b
);
191
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
FloatComplex
&
a
,
192
const
FloatComplexNDArray
&
b
);
193
194
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
FloatComplexNDArray
&
a
,
195
float
b
);
196
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
FloatComplexNDArray
&
a
,
197
const
FloatNDArray
&
b
);
198
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
FloatComplexNDArray
&
a
,
199
const
FloatComplex
&
b
);
200
extern
OCTINTERP_API
octave_value
elem_xpow
(
const
FloatComplexNDArray
&
a
,
201
const
FloatComplexNDArray
&
b
);
202
203
#endif
oct-cmplx.h
octave_value
Definition:
ov.h:75
PermMatrix
Definition:
PermMatrix.h:34
ComplexNDArray
Definition:
CNDArray.h:33
FloatDiagMatrix
Definition:
fDiagMatrix.h:34
FloatComplexDiagMatrix
Definition:
fCDiagMatrix.h:36
Range
Definition:
Range.h:33
xpow
OCTINTERP_API octave_value xpow(double a, double b)
Definition:
xpow.cc:95
a
calling an anonymous function involves an overhead quite comparable to the overhead of an m file function Passing a handle to a built in function is because the interpreter is not involved in the internal loop For a
Definition:
cellfun.cc:400
ComplexMatrix
Definition:
CMatrix.h:37
FloatMatrix
Definition:
fMatrix.h:36
DiagMatrix
Definition:
dDiagMatrix.h:34
FloatNDArray
Definition:
fNDArray.h:35
Matrix
Definition:
dMatrix.h:36
FloatComplexMatrix
Definition:
fCMatrix.h:37
ComplexDiagMatrix
Definition:
CDiagMatrix.h:36
b
b
Definition:
cellfun.cc:400
FloatComplexNDArray
Definition:
fCNDArray.h:33
NDArray
Definition:
dNDArray.h:35
FloatComplex
std::complex< float > FloatComplex
Definition:
oct-cmplx.h:32
elem_xpow
OCTINTERP_API octave_value elem_xpow(double a, const Matrix &b)
Definition:
xpow.cc:645
Complex
std::complex< double > Complex
Definition:
oct-cmplx.h:31
libinterp
corefcn
xpow.h
Generated on Sat Sep 1 2018 14:01:40 for GNU Octave by
1.8.14