SecreC 2 language  2.8.0 (2023.09)
Language and standard library reference
Functions

Functions

template<domain D :shared2p >
D bool all (D bool b)
 
template<domain D :shared2p >
D bool all (D bool[[1]] arr)
 
template<domain D :shared2p >
D bool all (D bool[[1]] vec, uint k)
 
template<domain D :shared2p , dim N>
D bool all (D bool[[N]] 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/4]

D bool all ( D bool  b)
Parameters
b- scalar boolean

◆ all() [2/4]

D bool all ( D bool[[1]]  arr)
Parameters
arr- boolean 1-dimensional vector

◆ all() [3/4]

D bool all ( D bool[[1]]  vec,
uint  k 
)
Parameters
vec- boolean 1-dimensional vector
k- an uint type value that shows in how many subarrays must all be found

◆ all() [4/4]

D bool all ( D bool[[N]]  arr)
Parameters
arr- boolean any dimension vector