summaryrefslogtreecommitdiff
path: root/src/c/elementaryFunctions/nanmin/dnanmincola.c
diff options
context:
space:
mode:
authorAbhinav Dronamraju2017-07-29 02:38:28 +0530
committerAbhinav Dronamraju2017-07-29 02:38:28 +0530
commit1f639242264252674aaec1b2726a4389eed9a7c0 (patch)
tree4e08a147578ec40316dd980e76669c078609a73b /src/c/elementaryFunctions/nanmin/dnanmincola.c
parente3630a1a245b9b7a2aba285a242bea200398ff6a (diff)
parentbe665fa018032441e5fa9352962286d96303e33c (diff)
downloadScilab2C_fossee_old-1f639242264252674aaec1b2726a4389eed9a7c0.tar.gz
Scilab2C_fossee_old-1f639242264252674aaec1b2726a4389eed9a7c0.tar.bz2
Scilab2C_fossee_old-1f639242264252674aaec1b2726a4389eed9a7c0.zip
Merge
Diffstat (limited to 'src/c/elementaryFunctions/nanmin/dnanmincola.c')
-rw-r--r--src/c/elementaryFunctions/nanmin/dnanmincola.c27
1 files changed, 12 insertions, 15 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);
+
+ }
}
-