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