GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-36359e2344
function.c
Go to the documentation of this file.
1
#include <
grass/calc.h
>
2
3
func_desc
calc_func_descs
[] = {{
"add"
,
c_varop
,
f_add
},
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
}};
calc.h
NULL
#define NULL
Definition:
ccmath.h:32
c_isnull
args_t c_isnull
f_gt
func_t f_gt
f_add
func_t f_add
c_int0
args_t c_int0
f_div
func_t f_div
f_if
func_t f_if
f_and2
func_t f_and2
c_varop
args_t c_varop
f_mul
func_t f_mul
f_ne
func_t f_ne
f_bitnot
func_t f_bitnot
f_nmin
func_t f_nmin
f_shiftl
func_t f_shiftl
f_nmedian
func_t f_nmedian
f_null
func_t f_null
f_graph
func_t f_graph
f_lt
func_t f_lt
f_mod
func_t f_mod
f_float
func_t f_float
f_acos
func_t f_acos
c_round
args_t c_round
f_nmax
func_t f_nmax
c_shiftop
args_t c_shiftop
f_le
func_t f_le
f_rand
func_t f_rand
c_graph
args_t c_graph
f_eval
func_t f_eval
f_tan
func_t f_tan
f_log
func_t f_log
f_round
func_t f_round
f_isnull
func_t f_isnull
f_sin
func_t f_sin
f_and
func_t f_and
c_double1
args_t c_double1
f_sqrt
func_t f_sqrt
f_max
func_t f_max
f_graph2
func_t f_graph2
f_min
func_t f_min
f_median
func_t f_median
c_unop
args_t c_unop
f_sub
func_t f_sub
f_or
func_t f_or
f_nmode
func_t f_nmode
f_int
func_t f_int
f_not
func_t f_not
c_logop
args_t c_logop
f_shiftru
func_t f_shiftru
c_cmpop
args_t c_cmpop
c_not
args_t c_not
f_bitand
func_t f_bitand
f_atan
func_t f_atan
f_ceil
func_t f_ceil
c_int
args_t c_int
f_double
func_t f_double
f_bitor
func_t f_bitor
f_pow
func_t f_pow
f_mode
func_t f_mode
f_asin
func_t f_asin
f_eq
func_t f_eq
c_if
args_t c_if
f_neg
func_t f_neg
f_abs
func_t f_abs
c_binop
args_t c_binop
Definition:
defs/calc.h:101
f_exp
func_t f_exp
c_double
args_t c_double
f_or2
func_t f_or2
f_bitxor
func_t f_bitxor
c_float
args_t c_float
f_ge
func_t f_ge
c_eval
args_t c_eval
f_floor
func_t f_floor
f_cos
func_t f_cos
c_double12
args_t c_double12
f_shiftr
func_t f_shiftr
calc_func_descs
func_desc calc_func_descs[]
Definition:
function.c:3
func_desc
Definition:
calc.h:20
lib
calc
function.c
Generated on Thu Nov 21 2024 07:03:26 for GRASS GIS 8 Programmer's Manual by
1.9.1