ArrayFire: and
Evaluate the logical AND of two arrays. More...
Functions | |
| AFAPI af_err | af_and (af_array *out, const af_array lhs, const af_array rhs, const bool batch) |
| C Interface to evaluate the logical AND of two arrays. More... | |
| AFAPI array | operator&& (const array &lhs, const array &rhs) |
| Performs a logical AND operation on two arrays or an array and a value. More... | |
| AFAPI array | operator&& (const array &lhs, const bool &rhs) |
| AFAPI array | operator&& (const array &lhs, const cdouble &rhs) |
| AFAPI array | operator&& (const array &lhs, const cfloat &rhs) |
| AFAPI array | operator&& (const array &lhs, const char &rhs) |
| AFAPI array | operator&& (const array &lhs, const double &rhs) |
| AFAPI array | operator&& (const array &lhs, const float &rhs) |
| AFAPI array | operator&& (const array &lhs, const int &rhs) |
| AFAPI array | operator&& (const array &lhs, const long long &rhs) |
| AFAPI array | operator&& (const array &lhs, const long &rhs) |
| AFAPI array | operator&& (const array &lhs, const short &rhs) |
| AFAPI array | operator&& (const array &lhs, const signed char &rhs) |
| AFAPI array | operator&& (const array &lhs, const unsigned char &rhs) |
| AFAPI array | operator&& (const array &lhs, const unsigned long long &rhs) |
| AFAPI array | operator&& (const array &lhs, const unsigned long &rhs) |
| AFAPI array | operator&& (const array &lhs, const unsigned short &rhs) |
| AFAPI array | operator&& (const array &lhs, const unsigned &rhs) |
| AFAPI array | operator&& (const bool &lhs, const array &rhs) |
| AFAPI array | operator&& (const cdouble &lhs, const array &rhs) |
| AFAPI array | operator&& (const cfloat &lhs, const array &rhs) |
| AFAPI array | operator&& (const char &lhs, const array &rhs) |
| AFAPI array | operator&& (const double &lhs, const array &rhs) |
| AFAPI array | operator&& (const float &lhs, const array &rhs) |
| AFAPI array | operator&& (const int &lhs, const array &rhs) |
| AFAPI array | operator&& (const long long &lhs, const array &rhs) |
| AFAPI array | operator&& (const long &lhs, const array &rhs) |
| AFAPI array | operator&& (const short &lhs, const array &rhs) |
| AFAPI array | operator&& (const signed char &lhs, const array &rhs) |
| AFAPI array | operator&& (const unsigned char &lhs, const array &rhs) |
| AFAPI array | operator&& (const unsigned long long &lhs, const array &rhs) |
| AFAPI array | operator&& (const unsigned long &lhs, const array &rhs) |
| AFAPI array | operator&& (const unsigned short &lhs, const array &rhs) |
| AFAPI array | operator&& (const unsigned &lhs, const array &rhs) |
Evaluate the logical AND of two arrays.
◆ af_and()
C Interface to evaluate the logical AND of two arrays.
Output type is b8.
- Parameters
-
[out] out 1's where lhs && rhs, else 0's[in] lhs first input [in] rhs second input [in] batch batch mode
- Returns
- AF_SUCCESS, if function returns successfully, else an af_err code is given
◆ operator&&() [1/33]
Performs a logical AND operation on two arrays or an array and a value.
- Parameters
-
[in] lhs the left hand side value of the operand [in] rhs the right hand side value of the operand
- Returns
- an array of type b8 with a logical AND operation performed on each element of
lhsandrhs