fix atan2,rename {hypot,hypot3} to {norm2,norm3}
[liba.git] / lua / src / tf.h
blob13032bcc5da80658cb8a05ca6b38112a3f95aa4b
1 /***
2 transfer function
3 @classmod a.tf
4 */
6 #ifndef LUA_LIBA_TF_H
7 #define LUA_LIBA_TF_H
9 #include "a.h"
11 /***
12 transfer function
13 @field num numerator table
14 @field den denominator table
15 @field input input table
16 @field output output table
17 @table a.tf
19 #if defined(__cplusplus)
20 extern "C" {
21 #endif /* __cplusplus */
23 /***
24 destructor for transfer function
25 @function die
27 int liba_tf_die(lua_State *L);
29 /***
30 constructor for transfer function
31 @tparam table num numerator table
32 @tparam table den denominator table
33 @treturn a.tf transfer function userdata
34 @function new
36 int liba_tf_new(lua_State *L);
38 /***
39 initialize for transfer function
40 @tparam table num numerator table
41 @tparam table den denominator table
42 @treturn a.tf transfer function userdata
43 @function init
45 int liba_tf_init(lua_State *L);
47 /***
48 calculate for transfer function
49 @tparam number x input
50 @treturn number output
51 @function iter
53 int liba_tf_iter(lua_State *L);
55 /***
56 zeroing for transfer function
57 @treturn a.tf transfer function userdata
58 @function zero
60 int liba_tf_zero(lua_State *L);
62 #if defined(__cplusplus)
63 } /* extern "C" */
64 #endif /* __cplusplus */
66 #endif /* tf.h */