PandA-2024.02
module.c
Go to the documentation of this file.
1 void min_max(int * input, int num_elements, int * max, int * min)
2 {
3  int local_max = input[0];
4  int local_min = input[0];
5  int i = 0;
6  for(i = 0; i < num_elements; i++)
7  {
8  if(input[i] > local_max)
9  {
10  local_max = input[i];
11  }
12  else if(input[i] < local_min)
13  {
14  local_min = input[i];
15  }
16  }
17  *min = local_min;
18  *max = local_max;
19 }
int input[SIZE]
Definition: hash.h:1
#define min(x, y)
#define max
Definition: backprop.h:17
void min_max(int *input, int num_elements, int *max, int *min)
Definition: module.c:1

Generated on Mon Feb 12 2024 13:02:48 for PandA-2024.02 by doxygen 1.8.13