SIMD module

select

procedureextensionsince 0.31.0Source

Lane i from a where the mask is set, from b where it isn't.

select :: (mask: Mask($T, $N), a: Vector(T, N), b: Vector(T, N)) -> Vector(T, N)

Parameters

mask: Mask($T, $N)
a: Vector(T, N)
b: Vector(T, N)

Returns

Vector(T, N)

See also