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