diff options
author | Brijeshcr | 2017-07-28 20:53:12 +0530 |
---|---|---|
committer | Brijeshcr | 2017-07-28 20:53:12 +0530 |
commit | be665fa018032441e5fa9352962286d96303e33c (patch) | |
tree | 0eb160b9a38bbd9fa89ed0f7f20b6176249e54ac /src/c/elementaryFunctions/nanmin | |
parent | ac3b1715d28643d9c8ba79a409adaf4196509ea7 (diff) | |
download | Scilab2C_fossee_old-be665fa018032441e5fa9352962286d96303e33c.tar.gz Scilab2C_fossee_old-be665fa018032441e5fa9352962286d96303e33c.tar.bz2 Scilab2C_fossee_old-be665fa018032441e5fa9352962286d96303e33c.zip |
Added Calerf
Diffstat (limited to 'src/c/elementaryFunctions/nanmin')
-rw-r--r-- | src/c/elementaryFunctions/nanmin/dnanmincola.c | 27 | ||||
-rw-r--r-- | src/c/elementaryFunctions/nanmin/dnanminrowa.c | 11 |
2 files changed, 17 insertions, 21 deletions
diff --git a/src/c/elementaryFunctions/nanmin/dnanmincola.c b/src/c/elementaryFunctions/nanmin/dnanmincola.c index 0c4d202..35b94c0 100644 --- a/src/c/elementaryFunctions/nanmin/dnanmincola.c +++ b/src/c/elementaryFunctions/nanmin/dnanmincola.c @@ -15,22 +15,19 @@ #include <math.h> #include "nanmin.h" -void dnanmincola(double *in, int row, int col, double *p, double *out) +void dnanmincola(double *in, int row, int col, double *out, double *p) { - double inter[col]; - - -for(int i=0; i< row; i++) + double inter[col]; + double position[col]; + + for(int i=0; i < row; i++) + { + for(int j=0; j < col; i++) { - for(int j=0 ; j< col; j++) - { - inter[j]= in[i+ (j*row)]; - - } - out[i]= dnanmina( inter, 1, col, p); - + inter[j]= in[i+ (j*row)]; } - - + + out[i]= dnanmina(inter, 1, col, position); + + } } - diff --git a/src/c/elementaryFunctions/nanmin/dnanminrowa.c b/src/c/elementaryFunctions/nanmin/dnanminrowa.c index d255ef1..0909fc2 100644 --- a/src/c/elementaryFunctions/nanmin/dnanminrowa.c +++ b/src/c/elementaryFunctions/nanmin/dnanminrowa.c @@ -15,22 +15,21 @@ #include <math.h> #include "nanmin.h" -void dnanminrowa(double *in, int row, int col, double *p, double *out) +void dnanminrowa(double *in, int row, int col, double *out, double *p) { - double inter[row]; + double inter[row], *position; -for(int i=0; i< col; i++) + for(int i=0; i< col; i++) { for(int j=0 ; j< row; j++) { inter[j]= in[j+ (i*row)]; } - out[i]= dnanmina( inter, row, 1, p); - + out[i]= dnanmina( inter, row, 1, position); } - + //p = position; } |