summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/statisticsFunctions/max/drowmaxa.c
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/src/c/statisticsFunctions/max/drowmaxa.c')
-rw-r--r--2.3-1/src/c/statisticsFunctions/max/drowmaxa.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/2.3-1/src/c/statisticsFunctions/max/drowmaxa.c b/2.3-1/src/c/statisticsFunctions/max/drowmaxa.c
index a3099231..db0c72c0 100644
--- a/2.3-1/src/c/statisticsFunctions/max/drowmaxa.c
+++ b/2.3-1/src/c/statisticsFunctions/max/drowmaxa.c
@@ -11,13 +11,14 @@
*/
#include "statMax.h"
-
+//#include "max.h"
void drowmaxa(double *in, int rows, int columns, double* out) {
int i = 0, j = 0;
-
- for (i = 0; i < columns; i++) {
+ for (i = 0; i < columns; i++)
+ {
out[i]=in[i*rows];
for (j = 1 ; j < rows ; j++)
- if (in[i*rows+j]>out[i]) out[i] = in[i*rows+j];
+ if (in[i*rows+j]>out[i])
+ out[i] = in[i*rows+j];
}
}