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

Functions

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

Detailed Description

Function for checking if any element in a boolean vector is 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 any must be found
Returns
returns a boolean vector that evaluates every subarray seperately for any
Note
iteratively checks all elements in input vector and returns true when the first 1-bit is found.
Leakage
None

Function Documentation

◆ any()

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