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

Method Float

tensor/string.go:112–115  ·  view source on GitHub ↗
(i []int)

Source from the content-addressed store, hash-verified

110}
111
112func (tsr *String) Float(i []int) float64 {
113 j := tsr.Shp.Offset(i)
114 return StringToFloat64(tsr.Values[j])
115}
116
117func (tsr *String) SetFloat(i []int, val float64) {
118 j := tsr.Shp.Offset(i)

Callers 1

AtMethod · 0.95

Calls 2

StringToFloat64Function · 0.85
OffsetMethod · 0.80

Tested by

no test coverage detected