summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/statisticsFunctions/min/dcolumnmina.c
diff options
context:
space:
mode:
authorimushir2015-11-27 15:24:05 +0530
committerimushir2015-11-27 15:24:05 +0530
commitcd09725a7833ba65d1a0f8d7d6bb46efee340beb (patch)
treede7bffc58bd2f7fed32fbb6f810f2e2d50933ed4 /2.3-1/src/c/statisticsFunctions/min/dcolumnmina.c
parent73fea946691734a4b2eba5a3dc75c172dfa21094 (diff)
downloadScilab2C-cd09725a7833ba65d1a0f8d7d6bb46efee340beb.tar.gz
Scilab2C-cd09725a7833ba65d1a0f8d7d6bb46efee340beb.tar.bz2
Scilab2C-cd09725a7833ba65d1a0f8d7d6bb46efee340beb.zip
added c files for u8 u16 i8 i16
Diffstat (limited to '2.3-1/src/c/statisticsFunctions/min/dcolumnmina.c')
-rw-r--r--2.3-1/src/c/statisticsFunctions/min/dcolumnmina.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/2.3-1/src/c/statisticsFunctions/min/dcolumnmina.c b/2.3-1/src/c/statisticsFunctions/min/dcolumnmina.c
index e12cb8ff..6f0b3c1a 100644
--- a/2.3-1/src/c/statisticsFunctions/min/dcolumnmina.c
+++ b/2.3-1/src/c/statisticsFunctions/min/dcolumnmina.c
@@ -16,7 +16,7 @@ void dcolumnmina(double *in, int rows, int columns, double* out) {
int i = 0, j = 0;
for (i = 0; i < rows; i++) {
- out[i]=in[i];
+ out[i]=in[i*columns];
for (j=0;j<columns;j++)
if (in[i+j*rows]<out[i]) out[i] = in[i+j*rows];
}