summaryrefslogtreecommitdiff
path: root/src/c/statisticsFunctions/min/dcolumnmina.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c/statisticsFunctions/min/dcolumnmina.c')
-rw-r--r--src/c/statisticsFunctions/min/dcolumnmina.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c/statisticsFunctions/min/dcolumnmina.c b/src/c/statisticsFunctions/min/dcolumnmina.c
index e12cb8f..6f0b3c1 100644
--- a/src/c/statisticsFunctions/min/dcolumnmina.c
+++ b/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];
}