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

Method FloatRowCell

tensor/bits.go:149–152  ·  view source on GitHub ↗
(row, cell int)

Source from the content-addressed store, hash-verified

147}
148
149func (tsr *Bits) FloatRowCell(row, cell int) float64 {
150 _, sz := tsr.RowCellSize()
151 return BoolToFloat64(tsr.Values.Index(row*sz + cell))
152}
153func (tsr *Bits) SetFloatRowCell(row, cell int, val float64) {
154 _, sz := tsr.RowCellSize()
155 tsr.Values.Set(row*sz+cell, Float64ToBool(val))

Callers

nothing calls this directly

Calls 3

RowCellSizeMethod · 0.95
BoolToFloat64Function · 0.85
IndexMethod · 0.45

Tested by

no test coverage detected