compress¶
Description¶
@compress(boolean_vector, values)
- select from values based on the boolean vector (true values)
- the boolean vector and values have the same length
Type Rules¶
High-level
bool, Basic -> MaxType
_ , _ -> domain error
Table with details (See type alias)
Shape Rules¶
Examples¶
@compress((1,1,0):bool, (53,11,12):i32)
(53,11):i32