|
| template<domain D :shared2p > |
| D bool | any (D bool b) |
| |
| template<domain D :shared2p > |
| D bool | any (D bool vec, uint k) |
| |
| template<domain D :shared2p , dim N> |
| D bool | any (D bool arr) |
| |
Function for checking if any value of the input vector is true.
- Note
- D - shared2p protection domain
-
Supported types - bool
- Returns
- true if any of the input bits is set
-
false if all input bits are not set
- Note
- performs one vectorized cast, and one comparison against zero
◆ any() [1/3]
template<domain D :shared2p , dim N>
- Parameters
-
| arr | - boolean any dimension vector |
◆ any() [2/3]
template<domain D :shared2p >
- Parameters
-
| b | - scalar boolean |
| vec | - boolean 1-dimensional vector |
◆ any() [3/3]
template<domain D :shared2p >
| D bool any |
( |
D bool |
vec, |
|
|
uint |
k |
|
) |
| |
- Parameters
-
| vec | - boolean 1-dimensional vector |
| k | - an uint type value that shows in how many subarrays must any be found |