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

Functions

template<domain D>
D bool all (D bool b)
 
template<domain D>
D bool all (D bool[[1]] vec)
 
template<domain D, dim N>
D bool all (D bool[[N]] arr)
 

Detailed Description

Function for checking if all elements in a boolean vector are true.

Note
D - all protection domains
Supported types - bool
Returns
true if all of the input bits are set
false if any input bit is not set
Note
iteratively checks all elements in input vector and returns false when the first 0-bit is found.
Leakage
None

Function Documentation

◆ all() [1/3]

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

◆ all() [2/3]

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

◆ all() [3/3]

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