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

Method StringValue

tensor/bits.go:130–133  ·  view source on GitHub ↗
(i []int)

Source from the content-addressed store, hash-verified

128}
129
130func (tsr *Bits) StringValue(i []int) string {
131 j := tsr.Shp.Offset(i)
132 return reflectx.ToString(tsr.Values.Index(j))
133}
134
135func (tsr *Bits) SetString(i []int, val string) {
136 if bv, err := reflectx.ToBool(val); err == nil {

Callers

nothing calls this directly

Calls 3

ToStringFunction · 0.92
OffsetMethod · 0.80
IndexMethod · 0.45

Tested by

no test coverage detected