def less_scalar

stelliferous@0.0.2.0 · tensor_f32.bend:204

import stelliferous@0.0.2.0/tensor_f32.bend as TensorF32
import Base
import stelliferous@0.0.2.0/math_compare.bend as Compare
import stelliferous@0.0.2.0/tensor.bend as Tensors
import stelliferous@0.0.2.0/tensor_operations.bend as Operations

204# Scalar comparisons share the eight-lane map and preserve the tensor layout.
205# Costs count AVX2 arithmetic, comparison, selection and value-bit instructions
206# in one eight-element round, divided by eight; moves and addressing are excluded.
207def less_scalar(tensor: Tensor(),+value: F32) -> Tensor():
208  Tensors.apply_context(~F32,~F32,~Operations.lanes(~F32,~Compare.less),value,"less_scalar",2.75,tensor)

Uses (5)

Used by (0)

No other definition uses this definition.