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

Functions

template<domain D>
D bool all (D bool[[1]] vec, uint k)
 

Detailed Description

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

Note
D - all protection domains
Supported types - bool
Parameters
vec- a vector of supported type
k- an uint type value for specifying from how many subarrays all must be found
Returns
returns a boolean vector that evaluates every subarray seperately for all
Note
iteratively checks all elements in input vector and returns false when the first 0-bit is found.
Leakage
None

Function Documentation

◆ all()

D bool all ( D bool[[1]]  vec,
uint  k 
)