casacore
Loading...
Searching...
No Matches
LELFunctionEnums.h
Go to the documentation of this file.
1// # LELFunctionEnums.h: Enums of function names
2// # Copyright (C) 1997,1998,1999,2001,2003
3// # Associated Universities, Inc. Washington DC, USA.
4// #
5// # This library is free software; you can redistribute it and/or modify it
6// # under the terms of the GNU Library General Public License as published by
7// # the Free Software Foundation; either version 2 of the License, or (at your
8// # option) any later version.
9// #
10// # This library is distributed in the hope that it will be useful, but WITHOUT//# ANY WARRANTY;
11// without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See
12// the GNU Library General Public # License for more details.
13// #
14// # You should have received a copy of the GNU Library General Public License
15// # along with this library; if not, write to the Free Software Foundation,
16// # Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
17// #
18// # Correspondence concerning AIPS++ should be addressed as follows:
19// # Internet email: casa-feedback@nrao.edu.
20// # Postal address: AIPS++ Project Office
21// # National Radio Astronomy Observatory
22// # 520 Edgemont Road
23// # Charlottesville, VA 22903-2475 USA
24
25#ifndef LATTICES_LELFUNCTIONENUMS_H
26#define LATTICES_LELFUNCTIONENUMS_H
27
28#include <casacore/casa/aips.h>
29
30namespace casacore { // # NAMESPACE CASACORE - BEGIN
31
32// <summary> Each LEL function is described in this enum </summary>
33//
34// <use visibility=local>
35//
36// <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
37// </reviewed>
38//
39// <prerequisite>
40// <li> <linkto class="Lattice"> Lattice</linkto>
41// <li> <linkto class="LatticeExpr"> LatticeExpr</linkto>
42// <li> <linkto class="LatticeExprNode"> LatticeExprNode</linkto>
43// <li> <linkto class="LELInterface"> LELInterface</linkto>
44// </prerequisite>
45//
46// <etymology>
47// This enum provides a value for each function accepted
48// by the Lattice Expression Language classes.
49// </etymology>
50//
51// <synopsis>
52// Each function name accepted by the bridging class LatticeExprNode
53// and passed on to the
54// <linkto class="LELFunction1D">LELFunction</linkto>
55// letter classes is labelled internally
56// with a value from this enum.
57// </synopsis>
58//
59// <todo asof="1998/01/21">
60// </todo>
61
63 public:
64 enum Function {
65
66 // sin
68
69 // sinh
71
72 // asin
74
75 // cos
77
78 // cosh
80
81 // acos
83
84 // tan
86
87 // tanh
89
90 // atan; atan(x) returns the arc tangent of x in the range -pi/2 to pi/2.
92
93 // atan2; atan2(y,x) computes an arc tangent of y/x in the range -pi to pi
95
96 // exp
98
99 // log
101
102 // log10
104
105 // power pow(x,y) == x**y or x^y
107
108 // sqrt
110
111 // round
113
114 // sign (-1 if <0; 0 if 0; 1 if >0)
116
117 // ceil; returns the least integral value greater than or equal to x.
119
120 // floor; returns the greatest integral value less than or equal to x.
122
123 // abs
125
126 // phase (of complex number)
128
129 // real (part of number)
131
132 // imag (inary part of complex number)
134
135 // conj (ugate complex number)
137
138 // complex (form complex from 2 reals)
140
141 // fmod; fmod(x,y) returns the remainder of x with respect to y; that is,
142 // the result r is one of the numbers that differ from x by an integral multiple of y.
144
145 // min; min(x,y)
147
148 // max; max(x,y)
150
151 // min; min(x) (is a scalar)
153
154 // max; max(x) (is a scalar)
156
157 // mean; mean(x) (is a scalar)
159
160 // median; median(x) (is a scalar)
162
163 // fractile; fractile(x,fraction) (is a scalar)
165
166 // fractilerange; fractilerange(x,fraction1[,fraction2]) (is a scalar)
168
169 // sum; sum(x) (is a scalar)
171
172 // nelements; nelements(x) (is a scalar)
174
175 // all (true) (is a scalar)
177
178 // any (true) (is a scalar)
180
181 // ntrue
183
184 // nfalse
186
187 // mask
189
190 // value
192
193 // iif (similar to ?: in C++)
195
196 // replace
198
199 // dimensionality
201
202 // length (of an axis)
204
205 // is the value a NaN?
207
208 // a bool array telling which indices of an axis are to be used
210
211 // number of functions
213
214 };
215};
216
217} // namespace casacore
218
219#endif
@ SIGN
sign (-1 if <0; 0 if 0; 1 if >0)
@ SUM
sum; sum(x) (is a scalar)
@ REAL
real (part of number)
@ COMPLEX
complex (form complex from 2 reals)
@ MEAN1D
mean; mean(x) (is a scalar)
@ FMOD
fmod; fmod(x,y) returns the remainder of x with respect to y; that is, the result r is one of the num...
@ IMAG
imag (inary part of complex number)
@ ATAN2
atan2; atan2(y,x) computes an arc tangent of y/x in the range -pi to pi
@ MEDIAN1D
median; median(x) (is a scalar)
@ ARG
phase (of complex number)
@ ISNAN
is the value a NaN?
@ ALL
all (true) (is a scalar)
@ INDEXIN
a bool array telling which indices of an axis are to be used
@ FLOOR
floor; returns the greatest integral value less than or equal to x.
@ NFUNCTIONS
number of functions
@ FRACTILERANGE1D
fractilerange; fractilerange(x,fraction1[,fraction2]) (is a scalar)
@ CEIL
ceil; returns the least integral value greater than or equal to x.
@ POW
power pow(x,y) == x**y or x^y
@ ATAN
atan; atan(x) returns the arc tangent of x in the range -pi/2 to pi/2.
@ NELEM
nelements; nelements(x) (is a scalar)
@ FRACTILE1D
fractile; fractile(x,fraction) (is a scalar)
@ MIN1D
min; min(x) (is a scalar)
@ LENGTH
length (of an axis)
@ ANY
any (true) (is a scalar)
@ MAX1D
max; max(x) (is a scalar)
@ CONJ
conj (ugate complex number)
For temporary backward namespace compatibility, use casa as alias for casacore.
Definition mainpage.dox:28