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

Method SetFloatRowCell

tensor/bits.go:153–156  ·  view source on GitHub ↗
(row, cell int, val float64)

Source from the content-addressed store, hash-verified

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))
156}
157
158func (tsr *Bits) Floats(flt *[]float64) {
159 sz := tsr.Len()

Callers

nothing calls this directly

Calls 3

RowCellSizeMethod · 0.95
Float64ToBoolFunction · 0.85
SetMethod · 0.65

Tested by

no test coverage detected