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

Method SetStringRowCell

tensor/number.go:115–120  ·  view source on GitHub ↗
(row, cell int, val string)

Source from the content-addressed store, hash-verified

113 }
114}
115func (tsr *Number[T]) SetStringRowCell(row, cell int, val string) {
116 if fv, err := strconv.ParseFloat(val, 64); err == nil {
117 _, sz := tsr.Shp.RowCellSize()
118 tsr.Values[row*sz+cell] = T(fv)
119 }
120}
121
122// String satisfies the fmt.Stringer interface for string of tensor data
123func (tsr *Number[T]) String() string {

Callers

nothing calls this directly

Calls 1

RowCellSizeMethod · 0.65

Tested by

no test coverage detected