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
4
func_desc
calc_func_descs
[] = {
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
f_isnull
func_t f_isnull
f_add
func_t f_add
f_float
func_t f_float
c_unop
args_t c_unop
c_shiftop
args_t c_shiftop
f_ceil
func_t f_ceil
c_float
args_t c_float
c_int0
args_t c_int0
f_mode
func_t f_mode
f_gt
func_t f_gt
f_shiftru
func_t f_shiftru
c_if
args_t c_if
f_ge
func_t f_ge
f_null
func_t f_null
f_bitnot
func_t f_bitnot
f_mul
func_t f_mul
f_le
func_t f_le
f_neg
func_t f_neg
f_or2
func_t f_or2
c_binop
args_t c_binop
Definition:
defs/calc.h:102
f_graph2
func_t f_graph2
NULL
#define NULL
Definition:
ccmath.h:32
f_nmin
func_t f_nmin
c_isnull
args_t c_isnull
f_div
func_t f_div
f_round
func_t f_round
f_tan
func_t f_tan
c_double
args_t c_double
c_not
args_t c_not
f_if
func_t f_if
f_atan
func_t f_atan
f_log
func_t f_log
f_sqrt
func_t f_sqrt
f_bitxor
func_t f_bitxor
f_int
func_t f_int
f_cos
func_t f_cos
f_abs
func_t f_abs
f_nmax
func_t f_nmax
c_logop
args_t c_logop
f_min
func_t f_min
f_median
func_t f_median
f_bitand
func_t f_bitand
f_exp
func_t f_exp
c_double1
args_t c_double1
c_graph
args_t c_graph
f_acos
func_t f_acos
c_double12
args_t c_double12
f_and2
func_t f_and2
c_eval
args_t c_eval
f_graph
func_t f_graph
f_sin
func_t f_sin
f_floor
func_t f_floor
f_bitor
func_t f_bitor
f_pow
func_t f_pow
f_nmedian
func_t f_nmedian
f_eval
func_t f_eval
c_cmpop
args_t c_cmpop
f_shiftr
func_t f_shiftr
c_round
args_t c_round
f_or
func_t f_or
f_mod
func_t f_mod
f_shiftl
func_t f_shiftl
f_lt
func_t f_lt
f_eq
func_t f_eq
f_ne
func_t f_ne
calc.h
c_int
args_t c_int
f_asin
func_t f_asin
f_max
func_t f_max
f_rand
func_t f_rand
c_varop
args_t c_varop
f_sub
func_t f_sub
f_nmode
func_t f_nmode
f_double
func_t f_double
func_desc
Definition:
calc.h:21
calc_func_descs
func_desc calc_func_descs[]
Definition:
function.c:4
f_not
func_t f_not
f_and
func_t f_and
lib
calc
function.c
Generated on Mon May 31 2021 05:21:29 for GRASS GIS 7 Programmer's Manual by
1.8.13