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

Method Float1D

tensor/bits.go:142–144  ·  view source on GitHub ↗
(off int)

Source from the content-addressed store, hash-verified

140}
141
142func (tsr *Bits) Float1D(off int) float64 {
143 return BoolToFloat64(tsr.Values.Index(off))
144}
145func (tsr *Bits) SetFloat1D(off int, val float64) {
146 tsr.Values.Set(off, Float64ToBool(val))
147}

Callers

nothing calls this directly

Calls 2

BoolToFloat64Function · 0.85
IndexMethod · 0.45

Tested by

no test coverage detected