Handbook
Glossary
vmax-element ( v -- n )
Vocabulary
math
.
vectors
Inputs
v
a
sequence
Outputs
n
a
real
Word description
Returns the maximum lane value, reducing lanes in order. Floating-point SIMD reductions select the number when only one operand is NaN, and select positive zero when comparing zeros of different signs.
Definition
IN:
math.vectors
GENERIC:
vmax-element
( v -- n )
Methods
USING:
kernel
math.vectors
sequences
;
M:
object
vmax-element
maximum
;
inline
USING:
generic
kernel
math.vectors
math.vectors.simd
math.vectors.simd.intrinsics
math.vectors.simd.private
;
M:
simd-128
vmax-element
"max-element"
over
simd-rep
[
(simd-reduce)
]
[
M\
simd-128
vmax-element
(call-next-method)
]
vx->x-op
;
inline