From 5f6b94a4dbd7e1fd6af5a3b18477827175bd73ea Mon Sep 17 00:00:00 2001 From: jofret Date: Fri, 30 May 2008 12:48:35 +0000 Subject: Tests matrix creation --- src/type/testDoubleComplex.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/type/testDoubleComplex.c') diff --git a/src/type/testDoubleComplex.c b/src/type/testDoubleComplex.c index 4aed293c..4e51cd18 100644 --- a/src/type/testDoubleComplex.c +++ b/src/type/testDoubleComplex.c @@ -14,14 +14,17 @@ #include #include "doubleComplex.h" +#define size 10000 + int matrixCreation(void); int addAndDiff(void); int matrixCreation(void) { - int size = 10000; double real[size]; double imag[size]; + doubleComplex *Z; + int i = 0; for (i = 0; i < size; ++i) @@ -30,7 +33,7 @@ int matrixCreation(void) { imag[i] = size - i; } - doubleComplex *Z = DoubleComplexMatrix(real, imag, size); + Z = DoubleComplexMatrix(real, imag, size); for (i = 0; i < size; ++i) { -- cgit