SecreC 2 language 2.9.0 (2026.10)
Language and standard library reference
Loading...
Searching...
No Matches
Functions

Functions

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)
 

Detailed Description

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

Function Documentation

◆ all() [1/3]

template<domain D :shared2p , dim N>
D bool all ( D bool  arr)
Parameters
arr- boolean any dimension vector

◆ all() [2/3]

template<domain D :shared2p >
D bool all ( D bool  arr)
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