Return the maximum along a given dimension. More...
Functions | |
| array | max (const array &in, const int dim=-1) |
| C++ Interface to return the maximum along a given dimension. | |
| void | max (array &val, array &idx, const array &in, const array &ragged_len, const int dim) |
| C++ Interface to return the ragged maximum along a given dimension. | |
| template<typename T> | |
| T | max (const array &in) |
| C++ Interface to return the maximum along the first non-singleton dimension. | |
| void | max (array &val, array &idx, const array &in, const int dim=-1) |
| C++ Interface to return the maximum and its location along a given dimension. | |
| template<typename T> | |
| void | max (T *val, unsigned *idx, const array &in) |
| C++ Interface to return the maximum and its location over all dimensions. | |
| af_err | af_max (af_array *out, const af_array in, const int dim) |
| C Interface to return the maximum along a given dimension. | |
| af_err | af_max_ragged (af_array *val, af_array *idx, const af_array in, const af_array ragged_len, const int dim) |
| C Interface to return the ragged maximum over a given dimension. | |
| af_err | af_max_all (double *real, double *imag, const af_array in) |
| C Interface to return the maximum over all dimensions. | |
| af_err | af_max_all_array (af_array *out, const af_array in) |
| C Interface to return the maximum over all dimensions. | |
| af_err | af_imax (af_array *out, af_array *idx, const af_array in, const int dim) |
| C Interface to return the maximum and its location along a given dimension. | |
| af_err | af_imax_all (double *real, double *imag, unsigned *idx, const af_array in) |
| C Interface to return the maximum and its location over all dimensions. | |
Return the maximum along a given dimension.
This function runs across all batches in the input simultaneously.
C Interface to return the maximum and its location along a given dimension.
| [out] | out | maximum |
| [out] | idx | location |
| [in] | in | input array |
| [in] | dim | dimension along which the maximum is found |
C Interface to return the maximum and its location over all dimensions.
NaN values are ignored.
| [out] | real | real component of the maximum |
| [out] | imag | imaginary component of the maximum; 0 if idx is real |
| [out] | idx | location |
| [in] | in | input array |
C Interface to return the maximum along a given dimension.
| [out] | out | maximum |
| [in] | in | input array |
| [in] | dim | dimension along which the maximum is found |
C Interface to return the maximum over all dimensions.
If in is real, imag will be set to zeros.
| [out] | real | real component of the maximum |
| [out] | imag | imaginary component of the maximum |
| [in] | in | input array |
C Interface to return the maximum over all dimensions.
| [out] | out | maximum |
| [in] | in | input array |
| af_err af_max_ragged | ( | af_array * | val, |
| af_array * | idx, | ||
| const af_array | in, | ||
| const af_array | ragged_len, | ||
| const int | dim ) |
C Interface to return the ragged maximum over a given dimension.
Input parameter ragged_len sets the number of elements to consider.
NaN values are ignored.
| [out] | val | ragged maximum |
| [out] | idx | locations of the maximum ragged values |
| [in] | in | input array |
| [in] | ragged_len | array containing the number of elements to use |
| [in] | dim | dimension along which the maximum is found |
C++ Interface to return the ragged maximum along a given dimension.
Input parameter ragged_len sets the number of elements to consider.
NaN values are ignored.
| [out] | val | ragged maximum |
| [out] | idx | locations of the maximum ragged values |
| [in] | in | input array |
| [in] | ragged_len | array containing the number of elements to use |
| [in] | dim | dimension along which the maximum is found |
C++ Interface to return the maximum and its location along a given dimension.
NaN values are ignored.
| [out] | val | maximum |
| [out] | idx | location |
| [in] | in | input array |
| [in] | dim | dimension along which the maximum is found, -1 denotes the first non-singleton dimension |
| T max | ( | const array & | in | ) |
C++ Interface to return the maximum along the first non-singleton dimension.
NaN values are ignored.
| [in] | in | input array |
C++ Interface to return the maximum along a given dimension.
NaN values are ignored.
| [in] | in | input array |
| [in] | dim | dimension along which the maximum is found, -1 denotes the first non-singleton dimension |
| void max | ( | T * | val, |
| unsigned * | idx, | ||
| const array & | in ) |
C++ Interface to return the maximum and its location over all dimensions.
NaN values are ignored.
Often used to return values directly to the host.
| [out] | val | maximum |
| [out] | idx | location |
| [in] | in | input array |