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

Method Float

tensor/bits.go:120–123  ·  view source on GitHub ↗
(i []int)

Source from the content-addressed store, hash-verified

118}
119
120func (tsr *Bits) Float(i []int) float64 {
121 j := tsr.Shp.Offset(i)
122 return BoolToFloat64(tsr.Values.Index(j))
123}
124
125func (tsr *Bits) SetFloat(i []int, val float64) {
126 j := tsr.Shp.Offset(i)

Callers

nothing calls this directly

Calls 3

BoolToFloat64Function · 0.85
OffsetMethod · 0.80
IndexMethod · 0.45

Tested by

no test coverage detected