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; without even the implied warranty of MERCHANTABILITY or
11//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12//# 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
62
64{
65public:
66 enum Function {
67
68// sin
70
71// sinh
73
74// asin
76
77// cos
79
80// cosh
82
83// acos
85
86// tan
88
89// tanh
91
92// atan; atan(x) returns the arc tangent of x in the range -pi/2 to pi/2.
94
95// atan2; atan2(y,x) computes an arc tangent of y/x in the range -pi to pi
97
98// exp
100
101// log
103
104// log10
106
107// power pow(x,y) == x**y or x^y
109
110// sqrt
112
113// round
115
116// sign (-1 if <0; 0 if 0; 1 if >0)
118
119// ceil; returns the least integral value greater than or equal to x.
121
122// floor; returns the greatest integral value less than or equal to x.
124
125// abs
127
128// phase (of complex number)
130
131// real (part of number)
133
134// imag (inary part of complex number)
136
137// conj (ugate complex number)
139
140// complex (form complex from 2 reals)
142
143// fmod; fmod(x,y) returns the remainder of x with respect to y; that is,
144// the result r is one of the numbers that differ from x by an integral multiple of y.
146
147// min; min(x,y)
149
150// max; max(x,y)
152
153// min; min(x) (is a scalar)
155
156// max; max(x) (is a scalar)
158
159// mean; mean(x) (is a scalar)
161
162// median; median(x) (is a scalar)
164
165// fractile; fractile(x,fraction) (is a scalar)
167
168// fractilerange; fractilerange(x,fraction1[,fraction2]) (is a scalar)
170
171// sum; sum(x) (is a scalar)
173
174// nelements; nelements(x) (is a scalar)
176
177// all (true) (is a scalar)
179
180// any (true) (is a scalar)
182
183// ntrue
185
186// nfalse
188
189// mask
191
192// value
194
195// iif (similar to ?: in C++)
197
198// replace
200
201// dimensionality
203
204// length (of an axis)
206
207// is the value a NaN?
209
210// a bool array telling which indices of an axis are to be used
212
213// number of functions
215
217
218};
219
220
221} //# NAMESPACE CASACORE - END
222
223#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)
@ IIF
iif (similar to ?: in C++)
@ 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)
this file contains all the compiler specific defines
Definition mainpage.dox:28