diff options
author | jofret | 2008-05-30 12:48:35 +0000 |
---|---|---|
committer | jofret | 2008-05-30 12:48:35 +0000 |
commit | 5f6b94a4dbd7e1fd6af5a3b18477827175bd73ea (patch) | |
tree | e0f5ddf4a8d9f21341b78747e24674eebf2b6857 /src/type/testDoubleComplex.c | |
parent | c1a275cdd034991035f00a302eb34db7225d1767 (diff) | |
download | scilab2c-5f6b94a4dbd7e1fd6af5a3b18477827175bd73ea.tar.gz scilab2c-5f6b94a4dbd7e1fd6af5a3b18477827175bd73ea.tar.bz2 scilab2c-5f6b94a4dbd7e1fd6af5a3b18477827175bd73ea.zip |
Tests matrix creation
Diffstat (limited to 'src/type/testDoubleComplex.c')
-rw-r--r-- | src/type/testDoubleComplex.c | 7 |
1 files changed, 5 insertions, 2 deletions
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 <assert.h> #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) { |