summaryrefslogtreecommitdiff
path: root/src/matrixOperations/division/testMatrixDivision.c
diff options
context:
space:
mode:
authorsimon2008-07-16 13:36:17 +0000
committersimon2008-07-16 13:36:17 +0000
commit07ad3a03eaf3bb9ea745e15061c4dac52edfa5f8 (patch)
treef562851cc6865eddbd3c418170dc2fb6c2b43ff3 /src/matrixOperations/division/testMatrixDivision.c
parent710cdab09144909ce6336fae6d605909fbee3d0b (diff)
downloadscilab2c-07ad3a03eaf3bb9ea745e15061c4dac52edfa5f8.tar.gz
scilab2c-07ad3a03eaf3bb9ea745e15061c4dac52edfa5f8.tar.bz2
scilab2c-07ad3a03eaf3bb9ea745e15061c4dac52edfa5f8.zip
corrected configure , and add comment in ddiva
Diffstat (limited to 'src/matrixOperations/division/testMatrixDivision.c')
-rw-r--r--src/matrixOperations/division/testMatrixDivision.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/matrixOperations/division/testMatrixDivision.c b/src/matrixOperations/division/testMatrixDivision.c
index 3f97cfd3..ba3e1839 100644
--- a/src/matrixOperations/division/testMatrixDivision.c
+++ b/src/matrixOperations/division/testMatrixDivision.c
@@ -15,8 +15,8 @@
#include <stdio.h>
#define LINES1 2
-#define LINES2 1
-#define COLUMNS 3
+#define LINES2 2
+#define COLUMNS 2
/*
static void sdivaTest ( void )
{
@@ -221,18 +221,18 @@ static void ddivaTest ( void )
{
int i = 0 ;
- double in1[] = { 1 , 2 , 3 , 4 ,5 , 6 } ;
+ double in1[] = { 1 , 2 , 3 , 4 } ;
-double in2[] = { 7 , 8 , 9 } ;
+double in2[] = { 1 , 2 ,3 ,4 } ;
-double result[] = { 0.25773195876288651 , 0.62886597938144329 };
+double result[] = { 1 ,0 , 0 , 1 };
double out [(COLUMNS)*(LINES2)] ;
- printf("\n>rentre dans fonction \n");
+
drdiva ( in1 , LINES1 , COLUMNS , in2 , LINES2 , COLUMNS , out ) ;
printf("\n\n\t>>>>>debut assert\n");
for ( i = 0 ; i < LINES2 *COLUMNS ; i++ )