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

Method Value

tensor/bits.go:91–91  ·  view source on GitHub ↗

Value returns value at given tensor index

(i []int)

Source from the content-addressed store, hash-verified

89
90// Value returns value at given tensor index
91func (tsr *Bits) Value(i []int) bool { j := int(tsr.Shp.Offset(i)); return tsr.Values.Index(j) }
92
93// Value1D returns value at given tensor 1D (flat) index
94func (tsr *Bits) Value1D(i int) bool { return tsr.Values.Index(i) }

Callers

nothing calls this directly

Calls 2

OffsetMethod · 0.80
IndexMethod · 0.45

Tested by

no test coverage detected