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

Method SetFloat

tensor/string.go:117–120  ·  view source on GitHub ↗
(i []int, val float64)

Source from the content-addressed store, hash-verified

115}
116
117func (tsr *String) SetFloat(i []int, val float64) {
118 j := tsr.Shp.Offset(i)
119 tsr.Values[j] = Float64ToString(val)
120}
121
122func (tsr *String) Float1D(off int) float64 {
123 return StringToFloat64(tsr.Values[off])

Callers

nothing calls this directly

Calls 2

Float64ToStringFunction · 0.85
OffsetMethod · 0.80

Tested by

no test coverage detected