#include <inttypes.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "spandsp/telephony.h"
#include "spandsp/vector_int.h"
Functions |
int32_t | vec_dot_prodi16 (const int16_t x[], const int16_t y[], int n) |
int32_t | vec_min_maxi16 (const int16_t x[], int n, int16_t out[]) |
| Find the minimum and maximum values in a vector.
|
Detailed Description
Function Documentation
int32_t vec_min_maxi16 |
( |
const int16_t |
x[], |
|
|
int |
n, |
|
|
int16_t |
out[] |
|
) |
| |
Find the minimum and maximum values in a vector.
- Parameters:
-
x | The vector to be searched. |
n | The number of elements in the vetor. |
out | A two element vector. The first will receive the maximum. The second will receive the minimum. This parameter may be set to NULL. |
- Returns:
- The absolute maximum value. Since the range of negative numbers exceeds the range of positive one, the returned integer is longer than the ones being searched.