added new c++ version of agg - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/fft.c
diff options
context:
space:
mode:
authorfr4nko <francesco.bbt@gmail.com>2010年06月29日 11:48:05 +0200
committerfr4nko <francesco.bbt@gmail.com>2010年06月29日 11:48:05 +0200
commit1beceb467757384bd5695f5e7ed9acfba590bd4a (patch)
tree009f1a0df1484ebf721a93a6e3f2b1d135e4f4ba /fft.c
parentb5f50727239483643508795750262bc3ab6723ca (diff)
downloadgsl-shell-1beceb467757384bd5695f5e7ed9acfba590bd4a.tar.gz
added new c++ version of agg
Now the agg graphical modules have a different implementations. Now lua code is written directly in C++. We have also changed the memory reference system: now lua is responsable of freeing everything.
Diffstat (limited to 'fft.c')
-rw-r--r--fft.c 16
1 files changed, 16 insertions, 0 deletions
diff --git a/fft.c b/fft.c
index 22c3e6db..01f70d38 100644
--- a/fft.c
+++ b/fft.c
@@ -215,6 +215,21 @@ fft_hc_mixed_radix_transform (lua_State *L, gsl_matrix *hc)
gsl_matrix *
fft_hc_check (lua_State *L, int index, struct fft_hc_sel ** selptr)
{
+ int sel;
+ gsl_matrix *p = gs_check_userdata_w_alt (L, index,
+ GS_HALFCMPL_R2,
+ GS_HALFCMPL_MR, &sel);
+
+ *selptr = (sel == GS_HALFCMPL_R2 ? fft_hc_radix2_sel : \
+ fft_hc_mixed_radix_sel);
+
+ return p;
+}
+
+ /*
+gsl_matrix *
+fft_hc_check (lua_State *L, int index, struct fft_hc_sel ** selptr)
+{
const char * const user_name = "half-complex vector";
void *p = lua_touserdata (L, index);
const char *msg;
@@ -251,6 +266,7 @@ fft_hc_check (lua_State *L, int index, struct fft_hc_sel ** selptr)
gs_type_error (L, index, msg);
return NULL;
}
+ */
int
fft_hc_length (lua_State *L)
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月26日 12:34:20 +0000

AltStyle によって変換されたページ (->オリジナル) /