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

Method SetStringRowCell

tensor/bits.go:189–194  ·  view source on GitHub ↗
(row, cell int, val string)

Source from the content-addressed store, hash-verified

187}
188
189func (tsr *Bits) SetStringRowCell(row, cell int, val string) {
190 if bv, err := reflectx.ToBool(val); err == nil {
191 _, sz := tsr.RowCellSize()
192 tsr.Values.Set(row*sz+cell, bv)
193 }
194}
195
196// Label satisfies the core.Labeler interface for a summary description of the tensor
197func (tsr *Bits) Label() string {

Callers

nothing calls this directly

Calls 3

RowCellSizeMethod · 0.95
ToBoolFunction · 0.92
SetMethod · 0.65

Tested by

no test coverage detected