(simd-select) ( a n rep -- x ) (original) (raw)

(simd-select) ( a n rep -- x )

Vocabulary
math.vectors.simd.intrinsics

Inputs

a an object
n an object
rep an object

Outputs

x an object

Word description
Word which implements nth for SIMD vectors.

Examples

float-4{ 3 4 9 1 } underlying>> 2 float-4-rep (simd-select)
9.0

Definition

USING: kernel math.vectors.simd.intrinsics.private
sequences.private ;

IN: math.vectors.simd.intrinsics

: (simd-select) ( a n rep -- x )
swapd byte>rep-array nth-unsafe ;