From 1199930d082d0e8cfe3ae9119b65244844d0fc44 Mon Sep 17 00:00:00 2001 From: cornet Date: Thu, 23 Apr 2009 08:09:26 +0000 Subject: add tests projects (matrixOperations) --- .../testDoubleMatrixConcatenation.vcproj | 4 ++-- .../testFloatMatrixConcatenation.vcproj | 4 ++-- .../chol/test_DoubleChol/testDoubleChol.vcproj | 22 ++++++++++++++++++++ .../chol/test_FloatChol/testFloatChol.vcproj | 22 ++++++++++++++++++++ .../test_DoubleDeterm/testDoubleDeterm.vcproj | 22 ++++++++++++++++++++ .../determ/test_DoubleDist/testDoubleDist.vcproj | 22 ++++++++++++++++++++ .../determ/test_FloatDeterm/testFloatDeterm.vcproj | 22 ++++++++++++++++++++ .../dist/test_FloatDist/testFloatDist.vcproj | 22 ++++++++++++++++++++ .../division/testMatrixRDivision.c | 6 +++--- .../testMatrixLDivision.vcproj | 24 ++++++++++++++++++++++ .../testMatrixRDivision.vcproj | 22 ++++++++++++++++++++ .../testMatrixExponential.vcproj | 22 ++++++++++++++++++++ .../eye/test_MatrixEye/testMatrixEye.vcproj | 22 ++++++++++++++++++++ .../fill/test_DoubleFill/testDoubleFill.vcproj | 22 ++++++++++++++++++++ .../fill/test_FloatFill/testFloatFill.vcproj | 22 ++++++++++++++++++++ .../hilbert/test_Hilbert/testHilbert.vcproj | 22 ++++++++++++++++++++ .../testMatrixInfiniteNorm.vcproj | 24 ++++++++++++++++++++++ .../testMatrixInversion.vcproj | 24 ++++++++++++++++++++++ .../jmat/test_Jmat/testJmat.vcproj | 22 ++++++++++++++++++++ .../logm/test_DoubleLogm/testDoubleLogm.vcproj | 22 ++++++++++++++++++++ .../logm/test_FloatLogm/testFloatLogm.vcproj | 22 ++++++++++++++++++++ .../testDoubleMagnitude.vcproj | 22 ++++++++++++++++++++ .../test_FloatMagnitude/testFloatMagnitude.vcproj | 22 ++++++++++++++++++++ .../testDoubleMatrixMultiplication.c | 2 +- .../multiplication/testFloatMatrixMultiplication.c | 5 +++++ .../testDoubleMatrixMultiplication.vcproj | 22 ++++++++++++++++++++ .../testFloatMatrixMultiplication.vcproj | 22 ++++++++++++++++++++ .../ones/test_MatrixOnes/testMatrixOnes.vcproj | 24 ++++++++++++++++++++++ .../powm/test_DoublePowm/testDoublePowm.vcproj | 22 ++++++++++++++++++++ .../powm/test_FloatPowm/testFloatPowm.vcproj | 22 ++++++++++++++++++++ src/matrixOperations/spec/testDoubleSpec.c | 4 ++-- src/matrixOperations/spec/testFloatSpec.c | 4 ++-- .../spec/test_DoubleSpec/testDoubleSpec.vcproj | 22 ++++++++++++++++++++ .../spec/test_FloatSpec/testFloatSpec.vcproj | 22 ++++++++++++++++++++ .../spec2/test_DoubleSpec2/testDoubleSpec2.vcproj | 22 ++++++++++++++++++++ .../spec2/test_FloatSpec2/testFloatSpec2.vcproj | 22 ++++++++++++++++++++ .../testDoubleSquaredMagnitude.vcproj | 22 ++++++++++++++++++++ .../testFloatSquaredMagnitude.vcproj | 22 ++++++++++++++++++++ .../trace/test_MatrixTrace/testMatrixTrace.vcproj | 22 ++++++++++++++++++++ .../testMatrixTranspose.vcproj | 22 ++++++++++++++++++++ .../zeros/test_MatrixZeros/testMatrixZeros.vcproj | 22 ++++++++++++++++++++ 41 files changed, 773 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/matrixOperations/cat/test_DoubleMatrixConcatenation/testDoubleMatrixConcatenation.vcproj b/src/matrixOperations/cat/test_DoubleMatrixConcatenation/testDoubleMatrixConcatenation.vcproj index 77c71e7b..0d9df86e 100644 --- a/src/matrixOperations/cat/test_DoubleMatrixConcatenation/testDoubleMatrixConcatenation.vcproj +++ b/src/matrixOperations/cat/test_DoubleMatrixConcatenation/testDoubleMatrixConcatenation.vcproj @@ -41,7 +41,7 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #include #include #include "matrixDivision.h" @@ -423,8 +423,8 @@ static void zrdivmaTest ( void ){ in1 = DoubleComplexMatrix ( bR,bI,6 ); in2 = DoubleComplexMatrix ( dR,dI,9 ); - out = malloc((uint)6*sizeof(doubleComplex)); - Result = malloc((uint)6*sizeof(doubleComplex)); + out = (doubleComplex*)malloc((unsigned int)6*sizeof(doubleComplex)); + Result = (doubleComplex*)malloc((unsigned int)6*sizeof(doubleComplex)); Result = DoubleComplexMatrix ( rR , rI , 6 ); diff --git a/src/matrixOperations/division/test_MatrixLDivision/testMatrixLDivision.vcproj b/src/matrixOperations/division/test_MatrixLDivision/testMatrixLDivision.vcproj index dd436967..93d2eb47 100644 --- a/src/matrixOperations/division/test_MatrixLDivision/testMatrixLDivision.vcproj +++ b/src/matrixOperations/division/test_MatrixLDivision/testMatrixLDivision.vcproj @@ -41,6 +41,7 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #include "spec.h" #include "stdio.h" #include "assert.h" @@ -25,7 +25,7 @@ static void dspecaTest(void){ int i; - out=malloc((uint)2*sizeof(double)); + out=(double*)malloc((unsigned int)2*sizeof(double)); dspeca(in,2,out); for(i=0;i<2;i++){ diff --git a/src/matrixOperations/spec/testFloatSpec.c b/src/matrixOperations/spec/testFloatSpec.c index 2cd8f45e..9bd46adc 100644 --- a/src/matrixOperations/spec/testFloatSpec.c +++ b/src/matrixOperations/spec/testFloatSpec.c @@ -10,7 +10,7 @@ * */ - +#include #include "spec.h" #include "stdio.h" #include "assert.h" @@ -29,7 +29,7 @@ static void sspecaTest(void){ int i; - out=malloc((uint)2*sizeof(float)); + out=(float *)malloc((unsigned int)2*sizeof(float)); sspeca(in,2,out); for (i=0;i<2;i++) printf("%f\n",out[i]); diff --git a/src/matrixOperations/spec/test_DoubleSpec/testDoubleSpec.vcproj b/src/matrixOperations/spec/test_DoubleSpec/testDoubleSpec.vcproj index 1f8ffcc0..86aae56f 100644 --- a/src/matrixOperations/spec/test_DoubleSpec/testDoubleSpec.vcproj +++ b/src/matrixOperations/spec/test_DoubleSpec/testDoubleSpec.vcproj @@ -41,6 +41,7 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +