From be665fa018032441e5fa9352962286d96303e33c Mon Sep 17 00:00:00 2001 From: Brijeshcr Date: Fri, 28 Jul 2017 20:53:12 +0530 Subject: Added Calerf --- src/c/elementaryFunctions/nanmin/dnanmincola.c | 27 ++++++++++++-------------- 1 file changed, 12 insertions(+), 15 deletions(-) (limited to 'src/c/elementaryFunctions/nanmin/dnanmincola.c') 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 #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); + + } } - -- cgit