Loading...
Searching...
No Matches
function.c
Go to the documentation of this file.
#include <grass/calc.h>
func_desc calc_func_descs[] = {{"add", c_varop, f_add},
{"sub", c_binop, f_sub},
{"mul", c_varop, f_mul},
{"div", c_binop, f_div},
{"mod", c_binop, f_mod},
{"pow", c_binop, f_pow},
{"neg", c_unop, f_neg},
{"abs", c_unop, f_abs},
{"ceil", c_unop, f_ceil},
{"floor", c_unop, f_floor},
{"gt", c_cmpop, f_gt},
{"ge", c_cmpop, f_ge},
{"lt", c_cmpop, f_lt},
{"le", c_cmpop, f_le},
{"eq", c_cmpop, f_eq},
{"ne", c_cmpop, f_ne},
{"and", c_logop, f_and},
{"or", c_logop, f_or},
{"and2", c_logop, f_and2},
{"or2", c_logop, f_or2},
{"not", c_not, f_not},
{"bitand", c_logop, f_bitand},
{"bitor", c_logop, f_bitor},
{"xor", c_logop, f_bitxor},
{"shiftl", c_shiftop, f_shiftl},
{"shiftr", c_shiftop, f_shiftr},
{"shiftru", c_shiftop, f_shiftru},
{"bitnot", c_not, f_bitnot},
{"sqrt", c_double1, f_sqrt},
{"sin", c_double1, f_sin},
{"cos", c_double1, f_cos},
{"tan", c_double1, f_tan},
{"acos", c_double1, f_acos},
{"asin", c_double1, f_asin},
{"exp", c_double12, f_exp},
{"log", c_double12, f_log},
{"atan", c_double12, f_atan},
{"int", c_int, f_int},
{"float", c_float, f_float},
{"double", c_double, f_double},
{"round", c_round, f_round},
{"eval", c_eval, f_eval},
{"if", c_if, f_if},
{"isnull", c_isnull, f_isnull},
{"max", c_varop, f_max},
{"min", c_varop, f_min},
{"median", c_varop, f_median},
{"mode", c_varop, f_mode},
{"nmax", c_varop, f_nmax},
{"nmin", c_varop, f_nmin},
{"nmedian", c_varop, f_nmedian},
{"nmode", c_varop, f_nmode},
{"graph", c_graph, f_graph},
{"graph2", c_graph, f_graph2},
{"rand", c_binop, f_rand},
{"null", c_int0, f_null},
{NULL, NULL, NULL}};
NULL
#define NULL
Definition ccmath.h:32
c_varop
int c_varop(int argc, int *argt)
Definition check.c:83
c_binop
int c_binop(int argc, int *argt)
Definition check.c:64
c_double12
int c_double12(int argc, int *argt)
Definition check.c:36
c_int0
int c_int0(int argc, int *argt)
Definition check.c:3
c_double1
int c_double1(int argc, int *argt)
Definition check.c:23
c_logop
int c_logop(int argc, int *argt)
Definition check.c:129
c_unop
int c_unop(int argc, int *argt)
Definition check.c:52
c_cmpop
int c_cmpop(int argc, int *argt)
Definition check.c:106
c_shiftop
int c_shiftop(int argc, int *argt)
Definition check.c:145
calc_func_descs
func_desc calc_func_descs[]
Definition function.c:3
f_abs
int f_abs(int argc, const int *argt, void **args)
Definition xabs.c:13
f_acos
int f_acos(int argc, const int *argt, void **args)
Definition xacos.c:19
f_add
int f_add(int argc, const int *argt, void **args)
Definition xadd.c:9
f_and2
int f_and2(int argc, const int *argt, void **args)
Definition xand2.c:16
f_and
int f_and(int argc, const int *argt, void **args)
Definition xand.c:9
f_asin
int f_asin(int argc, const int *argt, void **args)
Definition xasin.c:19
f_atan
int f_atan(int argc, const int *argt, void **args)
Definition xatan.c:20
f_bitand
int f_bitand(int argc, const int *argt, void **args)
Definition xbitand.c:9
f_bitnot
int f_bitnot(int argc, const int *argt, void **args)
Definition xbitnot.c:9
f_bitor
int f_bitor(int argc, const int *argt, void **args)
Definition xbitor.c:9
f_bitxor
int f_bitxor(int argc, const int *argt, void **args)
Definition xbitxor.c:9
f_ceil
int f_ceil(int argc, const int *argt, void **args)
Definition xceil.c:13
f_cos
int f_cos(int argc, const int *argt, void **args)
Definition xcos.c:18
f_div
int f_div(int argc, const int *argt, void **args)
Definition xdiv.c:9
c_double
int c_double(int argc, int *argt)
Definition xdouble.c:61
f_double
int f_double(int argc, const int *argt, void **args)
Definition xdouble.c:12
f_eq
int f_eq(int argc, const int *argt, void **args)
Definition xeq.c:9
f_eval
int f_eval(int argc, const int *argt, void **args)
Definition xeval.c:11
c_eval
int c_eval(int argc, int *argt)
Definition xeval.c:61
f_exp
int f_exp(int argc, const int *argt, void **args)
Definition xexp.c:15
f_float
int f_float(int argc, const int *argt, void **args)
Definition xfloat.c:12
c_float
int c_float(int argc, int *argt)
Definition xfloat.c:61
f_floor
int f_floor(int argc, const int *argt, void **args)
Definition xfloor.c:13
f_ge
int f_ge(int argc, const int *argt, void **args)
Definition xge.c:9
f_graph2
int f_graph2(int argc, const int *argt, void **args)
Definition xgraph.c:102
f_graph
int f_graph(int argc, const int *argt, void **args)
Definition xgraph.c:28
c_graph
int c_graph(int argc, int *argt)
Definition xgraph.c:12
f_gt
int f_gt(int argc, const int *argt, void **args)
Definition xgt.c:9
c_if
int c_if(int argc, int *argt)
Definition xif.c:270
f_if
int f_if(int argc, const int *argt, void **args)
Definition xif.c:242
f_int
int f_int(int argc, const int *argt, void **args)
Definition xint.c:12
c_int
int c_int(int argc, int *argt)
Definition xint.c:61
f_isnull
int f_isnull(int argc, const int *argt, void **args)
Definition xisnull.c:10
c_isnull
int c_isnull(int argc, int *argt)
Definition xisnull.c:50
f_le
int f_le(int argc, const int *argt, void **args)
Definition xle.c:9
f_log
int f_log(int argc, const int *argt, void **args)
Definition xlog.c:21
f_lt
int f_lt(int argc, const int *argt, void **args)
Definition xlt.c:9
f_max
int f_max(int argc, const int *argt, void **args)
Definition xmax.c:11
f_median
int f_median(int argc, const int *argt, void **args)
Definition xmedian.c:47
f_min
int f_min(int argc, const int *argt, void **args)
Definition xmin.c:11
f_mod
int f_mod(int argc, const int *argt, void **args)
Definition xmod.c:11
f_mode
int f_mode(int argc, const int *argt, void **args)
Definition xmode.c:60
f_mul
int f_mul(int argc, const int *argt, void **args)
Definition xmul.c:9
f_ne
int f_ne(int argc, const int *argt, void **args)
Definition xne.c:9
f_neg
int f_neg(int argc, const int *argt, void **args)
Definition xneg.c:9
f_nmax
int f_nmax(int argc, const int *argt, void **args)
Definition xnmax.c:11
f_nmedian
int f_nmedian(int argc, const int *argt, void **args)
Definition xnmedian.c:48
f_nmin
int f_nmin(int argc, const int *argt, void **args)
Definition xnmin.c:11
f_nmode
int f_nmode(int argc, const int *argt, void **args)
Definition xnmode.c:60
c_not
int c_not(int argc, int *argt)
Definition xnot.c:36
f_not
int f_not(int argc, const int *argt, void **args)
Definition xnot.c:9
f_null
int f_null(int argc, const int *argt, void **args)
Definition xnull.c:9
f_or2
int f_or2(int argc, const int *argt, void **args)
Definition xor2.c:16
f_or
int f_or(int argc, const int *argt, void **args)
Definition xor.c:9
f_pow
int f_pow(int argc, const int *argt, void **args)
Definition xpow.c:25
f_rand
int f_rand(int argc, const int *argt, void **args)
Definition xrand.c:12
c_round
int c_round(int argc, int *argt)
Definition xround.c:176
f_round
int f_round(int argc, const int *argt, void **args)
Definition xround.c:30
f_shiftl
int f_shiftl(int argc, const int *argt, void **args)
Definition xshiftl.c:9
f_shiftr
int f_shiftr(int argc, const int *argt, void **args)
Definition xshiftr.c:9
f_shiftru
int f_shiftru(int argc, const int *argt, void **args)
Definition xshiftru.c:9
f_sin
int f_sin(int argc, const int *argt, void **args)
Definition xsin.c:18
f_sqrt
int f_sqrt(int argc, const int *argt, void **args)
Definition xsqrt.c:14
f_sub
int f_sub(int argc, const int *argt, void **args)
Definition xsub.c:9
f_tan
int f_tan(int argc, const int *argt, void **args)
Definition xtan.c:19