MCPcopy Create free account
hub / github.com/brimdata/super / compareNEFloatViewConst

Function compareNEFloatViewConst

runtime/vam/expr/comparefuncs.go:1807–1820  ·  view source on GitHub ↗
(lhs, rhs vector.Any)

Source from the content-addressed store, hash-verified

1805}
1806
1807func compareNEFloatViewConst(lhs, rhs vector.Any) vector.Any {
1808 ld := lhs.(*vector.View)
1809 l := ld.Any.(*vector.Float)
1810 lx := ld.Index
1811 rconst := vector.FloatValue(rhs, 0)
1812 n := lhs.Len()
1813 out := vector.NewFalse(n)
1814 for k := range n {
1815 if l.Value(uint32(lx[k])) != rconst {
1816 out.Set(k)
1817 }
1818 }
1819 return out
1820}
1821
1822func compareNEFloatConstFlat(lhs, rhs vector.Any) vector.Any {
1823 lconst := vector.FloatValue(lhs, 0)

Callers

nothing calls this directly

Calls 5

FloatValueFunction · 0.92
NewFalseFunction · 0.92
LenMethod · 0.65
ValueMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected