Clamp an array between an upper and a lower limit. More...
Functions | |
AFAPI af_err | af_clamp (af_array *out, const af_array in, const af_array lo, const af_array hi, const bool batch) |
C Interface to clamp an array between an upper and a lower limit. More... | |
AFAPI array | clamp (const array &in, const array &lo, const array &hi) |
AFAPI array | clamp (const array &in, const array &lo, const double hi) |
AFAPI array | clamp (const array &in, const double lo, const array &hi) |
AFAPI array | clamp (const array &in, const double lo, const double hi) |
Clamp an array between an upper and a lower limit.
AFAPI af_err af_clamp | ( | af_array * | out, |
const af_array | in, | ||
const af_array | lo, | ||
const af_array | hi, | ||
const bool | batch | ||
) |
C Interface to clamp an array between an upper and a lower limit.
[out] | out | clamped array |
[in] | in | input array |
[in] | lo | lower limit array |
[in] | hi | upper limit array |
[in] | batch | batch mode |
C++ Interface to clamp an array between an upper and a lower limit.
[in] | in | input array |
[in] | lo | lower limit; can be an array or a scalar |
[in] | hi | upper limit; can be an array or a scalar |
C++ Interface to clamp an array between an upper and a lower limit.
[in] | in | input array |
[in] | lo | lower limit; can be an array or a scalar |
[in] | hi | upper limit; can be an array or a scalar |
C++ Interface to clamp an array between an upper and a lower limit.
[in] | in | input array |
[in] | lo | lower limit; can be an array or a scalar |
[in] | hi | upper limit; can be an array or a scalar |