MCPcopy Create free account
hub / github.com/cogentcore/core / SetFloat

Method SetFloat

tensor/bits.go:125–128  ·  view source on GitHub ↗
(i []int, val float64)

Source from the content-addressed store, hash-verified

123}
124
125func (tsr *Bits) SetFloat(i []int, val float64) {
126 j := tsr.Shp.Offset(i)
127 tsr.Values.Set(j, Float64ToBool(val))
128}
129
130func (tsr *Bits) StringValue(i []int) string {
131 j := tsr.Shp.Offset(i)

Callers

nothing calls this directly

Calls 3

Float64ToBoolFunction · 0.85
OffsetMethod · 0.80
SetMethod · 0.65

Tested by

no test coverage detected