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

Method Set

tensor/bits.go:96–96  ·  view source on GitHub ↗
(i []int, val bool)

Source from the content-addressed store, hash-verified

94func (tsr *Bits) Value1D(i int) bool { return tsr.Values.Index(i) }
95
96func (tsr *Bits) Set(i []int, val bool) { j := int(tsr.Shp.Offset(i)); tsr.Values.Set(j, val) }
97func (tsr *Bits) Set1D(i int, val bool) { tsr.Values.Set(i, val) }
98
99// SetShape sets the shape params, resizing backing storage appropriately

Callers

nothing calls this directly

Calls 2

OffsetMethod · 0.80
SetMethod · 0.65

Tested by

no test coverage detected