Check if all values along a given dimension are true. More...
Functions | |
AFAPI array | allTrue (const array &in, const int dim=-1) |
C++ Interface to check if all values along a given dimension are true. More... | |
template<typename T > | |
T | allTrue (const array &in) |
C++ Interface to check if all values along the first non-singleton dimension are true. More... | |
AFAPI af_err | af_all_true (af_array *out, const af_array in, const int dim) |
C Interface to check if all values along a given dimension are true. More... | |
AFAPI af_err | af_all_true_all (double *real, double *imag, const af_array in) |
C Interface to check if all values over all dimensions are true. More... | |
AFAPI af_err | af_all_true_all_array (af_array *out, const af_array in) |
C Interface to check if all values over all dimensions are true. More... | |
template<typename T > | |
T | alltrue (const array &in) |
AFAPI array | alltrue (const array &in, const int dim=-1) |
Check if all values along a given dimension are true.
Return type is b8
for all input types.
This function runs across all batches in the input simultaneously.
C Interface to check if all values along a given dimension are true.
NaN values are ignored.
[out] | out | array containing 1's if all true; 0's otherwise |
[in] | in | input array |
[in] | dim | dimention along which the check occurs |
C Interface to check if all values over all dimensions are true.
[out] | real | 1 if all true; 0 otherwise |
[out] | imag | 0 |
[in] | in | input array |
C Interface to check if all values over all dimensions are true.
[out] | out | 1 if all true; 0 otherwise |
[in] | in | input array |
T allTrue | ( | const array & | in | ) |
C++ Interface to check if all values along the first non-singleton dimension are true.
NaN values are ignored.
[in] | in | input array |
T alltrue | ( | const array & | in | ) |
C++ Interface to check if all values along the first non-singleton dimension are true.
NaN values are ignored.
[in] | in | input array |
C++ Interface to check if all values along a given dimension are true.
NaN values are ignored.
[in] | in | input array |
[in] | dim | dimension along which the check occurs, -1 denotes the first non-singleton dimension |
C++ Interface to check if all values along a given dimension are true.
NaN values are ignored.
[in] | in | input array |
[in] | dim | dimension along which the check occurs, -1 denotes the first non-singleton dimension |