Find if of all of the values in input are true. More...
Functions | |
AFAPI array | allTrue (const array &in, const int dim=-1) |
C++ Interface for checking all true values in an array. More... | |
template<typename T > | |
T | allTrue (const array &in) |
C++ Interface for checking if all values in an array are true. More... | |
AFAPI af_err | af_all_true (af_array *out, const af_array in, const int dim) |
C Interface for checking all true values in an array. More... | |
AFAPI af_err | af_all_true_all (double *real, double *imag, const af_array in) |
C Interface for checking if all values in an array are true. More... | |
template<typename T > | |
T | alltrue (const array &in) |
C++ Interface for checking if all values in an array are true. More... | |
AFAPI array | alltrue (const array &in, const int dim=-1) |
C++ Interface for checking all true values in an array. More... | |
Find if of all of the values in input are true.
This function performs the operation across all batches present in the input simultaneously.
C Interface for checking all true values in an array.
[out] | out | will contain the result of "and" operation all values in in along dim |
[in] | in | is the input array |
[in] | dim | The dimension along which the "and" operation occurs |
C Interface for checking if all values in an array are true.
[out] | real | is 1 if all values of input in are true, 0 otherwise. |
[out] | imag | is always set to 0. |
[in] | in | is the input array |
imag
is always set to 0. T af::alltrue | ( | const array & | in | ) |
C++ Interface for checking if all values in an array are true.
[in] | in | is the input array |
in
are true, false otherwise C++ Interface for checking all true values in an array.
[in] | in | is the input array |
[in] | dim | The dimension along which the values are checked to be all true |
dim
are all truedim
is -1 by default. -1 denotes the first non-singleton dimension. C++ Interface for checking all true values in an array.
[in] | in | is the input array |
[in] | dim | The dimension along which the values are checked to be all true |
dim
are all truedim
is -1 by default. -1 denotes the first non-singleton dimension. T af::allTrue | ( | const array & | in | ) |
C++ Interface for checking if all values in an array are true.
[in] | in | is the input array |
in
are true, false otherwise