summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAnthony Blake <anthonix@me.com>2012-10-31 15:33:50 +1300
committerAnthony Blake <anthonix@me.com>2012-10-31 15:33:50 +1300
commitcdd3a3a385f9539e85dec17bd84ec81ab8eb7e21 (patch)
tree7863af09bb37bb0931a80b49736da035c96f3b83 /tests
parent20fb90955801191a4531cd4b767740299ab6911e (diff)
downloadffts-cdd3a3a385f9539e85dec17bd84ec81ab8eb7e21.zip
ffts-cdd3a3a385f9539e85dec17bd84ec81ab8eb7e21.tar.gz
Modified API to make way for multi-dimensional transforms
Diffstat (limited to 'tests')
-rw-r--r--tests/test.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test.c b/tests/test.c
index deb1fbc..326e7e2 100644
--- a/tests/test.c
+++ b/tests/test.c
@@ -88,10 +88,10 @@ test_transform(int n, int sign) {
input[2] = 1.0f;
- ffts_plan_t *p = ffts_init(i, sign);
+ ffts_plan_t *p = ffts_init_1d(i, sign);
if(p) {
ffts_execute(p, input, output);
- printf("%5d | %9d | %10E\n", sign, n, impulse_error(n, sign, output));
+ printf(" %3d | %9d | %10E\n", sign, n, impulse_error(n, sign, output));
ffts_free(p);
}else{
printf("Plan unsupported\n");
@@ -124,7 +124,7 @@ main(int argc, char *argv[]) {
// input[2] = 1.0f;
- ffts_plan_t *p = ffts_init(i, sign);
+ ffts_plan_t *p = ffts_init_1d(i, sign);
if(p) {
ffts_execute(p, input, output);
for(i=0;i<n;i++) printf("%d %d %f %f\n", i, sign, output[2*i], output[2*i+1]);
@@ -144,8 +144,8 @@ main(int argc, char *argv[]) {
}else{
// test various sizes and display error
- printf("Direction | Size | L2 Error\n");
- printf("----------+-----------+-------------\n");
+ printf(" Sign | Size | L2 Error\n");
+ printf("------+-----------+-------------\n");
int n;
for(n=1;n<=18;n++) {
test_transform(pow(2,n), -1);
OpenPOWER on IntegriCloud