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 any (D bool b)
 
template<domain D :shared2p >
D bool any (D bool vec, uint k)
 
template<domain D :shared2p , dim N>
D bool any (D bool arr)
 

Detailed Description

Function for checking if any value of the input vector is true.

Note
D - shared2p protection domain
Supported types - bool
Returns
true if any of the input bits is set
false if all input bits are not set
Note
performs one vectorized cast, and one comparison against zero

Function Documentation

◆ any() [1/3]

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

◆ any() [2/3]

template<domain D :shared2p >
D bool any ( D bool  vec)
Parameters
b- scalar boolean
vec- boolean 1-dimensional vector

◆ any() [3/3]

template<domain D :shared2p >
D bool any ( D bool  vec,
uint  k 
)
Parameters
vec- boolean 1-dimensional vector
k- an uint type value that shows in how many subarrays must any be found