GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
function.c
Go to the documentation of this file.
1 
2 #include <grass/calc.h>
3 
5  {"add", c_varop, f_add},
6  {"sub", c_binop, f_sub},
7  {"mul", c_varop, f_mul},
8  {"div", c_binop, f_div},
9  {"mod", c_binop, f_mod},
10  {"pow", c_binop, f_pow},
11 
12  {"neg", c_unop, f_neg},
13  {"abs", c_unop, f_abs},
14  {"ceil", c_unop, f_ceil},
15  {"floor", c_unop, f_floor},
16 
17  {"gt", c_cmpop, f_gt},
18  {"ge", c_cmpop, f_ge},
19  {"lt", c_cmpop, f_lt},
20  {"le", c_cmpop, f_le},
21  {"eq", c_cmpop, f_eq},
22  {"ne", c_cmpop, f_ne},
23 
24  {"and", c_logop, f_and},
25  {"or", c_logop, f_or},
26 
27  {"and2", c_logop, f_and2},
28  {"or2", c_logop, f_or2},
29 
30  {"not", c_not, f_not},
31 
32  {"bitand", c_logop, f_bitand},
33  {"bitor", c_logop, f_bitor},
34  {"xor", c_logop, f_bitxor},
35 
36  {"shiftl", c_shiftop, f_shiftl},
37  {"shiftr", c_shiftop, f_shiftr},
38  {"shiftru", c_shiftop, f_shiftru},
39 
40  {"bitnot", c_not, f_bitnot},
41 
42  {"sqrt", c_double1, f_sqrt},
43  {"sin", c_double1, f_sin},
44  {"cos", c_double1, f_cos},
45  {"tan", c_double1, f_tan},
46  {"acos", c_double1, f_acos},
47  {"asin", c_double1, f_asin},
48 
49  {"exp", c_double12, f_exp},
50  {"log", c_double12, f_log},
51  {"atan", c_double12, f_atan},
52 
53  {"int", c_int, f_int},
54  {"float", c_float, f_float},
55  {"double", c_double, f_double},
56  {"round", c_round, f_round},
57 
58  {"eval", c_eval, f_eval},
59  {"if", c_if, f_if},
60  {"isnull", c_isnull, f_isnull},
61 
62  {"max", c_varop, f_max},
63  {"min", c_varop, f_min},
64  {"median", c_varop, f_median},
65  {"mode", c_varop, f_mode},
66 
67  {"nmax", c_varop, f_nmax},
68  {"nmin", c_varop, f_nmin},
69  {"nmedian", c_varop, f_nmedian},
70  {"nmode", c_varop, f_nmode},
71 
72  {"graph", c_graph, f_graph},
73  {"graph2", c_graph, f_graph2},
74 
75  {"rand", c_binop, f_rand},
76 
77  {"null", c_int0, f_null},
78 
79  {NULL, NULL, NULL}
80 };
81 
func_t f_isnull
func_t f_add
func_t f_float
args_t c_unop
args_t c_shiftop
func_t f_ceil
args_t c_float
args_t c_int0
func_t f_mode
func_t f_gt
func_t f_shiftru
args_t c_if
func_t f_ge
func_t f_null
func_t f_bitnot
func_t f_mul
func_t f_le
func_t f_neg
func_t f_or2
args_t c_binop
Definition: defs/calc.h:102
func_t f_graph2
#define NULL
Definition: ccmath.h:32
func_t f_nmin
args_t c_isnull
func_t f_div
func_t f_round
func_t f_tan
args_t c_double
args_t c_not
func_t f_if
func_t f_atan
func_t f_log
func_t f_sqrt
func_t f_bitxor
func_t f_int
func_t f_cos
func_t f_abs
func_t f_nmax
args_t c_logop
func_t f_min
func_t f_median
func_t f_bitand
func_t f_exp
args_t c_double1
args_t c_graph
func_t f_acos
args_t c_double12
func_t f_and2
args_t c_eval
func_t f_graph
func_t f_sin
func_t f_floor
func_t f_bitor
func_t f_pow
func_t f_nmedian
func_t f_eval
args_t c_cmpop
func_t f_shiftr
args_t c_round
func_t f_or
func_t f_mod
func_t f_shiftl
func_t f_lt
func_t f_eq
func_t f_ne
args_t c_int
func_t f_asin
func_t f_max
func_t f_rand
args_t c_varop
func_t f_sub
func_t f_nmode
func_t f_double
Definition: calc.h:21
func_desc calc_func_descs[]
Definition: function.c:4
func_t f_not
func_t f_and