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

Method MulScalar

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

Source from the content-addressed store, hash-verified

64}
65
66func (tsr *String) MulScalar(i []int, val float64) float64 {
67 j := tsr.Shp.Offset(i)
68 fv := StringToFloat64(tsr.Values[j]) * val
69 tsr.Values[j] = Float64ToString(fv)
70 return fv
71}
72
73func (tsr *String) SetString(i []int, val string) {
74 j := tsr.Shp.Offset(i)

Callers 15

DrawStandardBoxMethod · 0.45
mainFunction · 0.45
MiterPtsFunction · 0.45
RenderMethod · 0.45
RenderMethod · 0.45
thumbSizeDotsMethod · 0.45
RenderMethod · 0.45
InitMethod · 0.45
ConfigLightsMethod · 0.45
MoveOnAxisMethod · 0.45
MoveOnAxisAbsMethod · 0.45
SetEulerRotationMethod · 0.45

Calls 3

StringToFloat64Function · 0.85
Float64ToStringFunction · 0.85
OffsetMethod · 0.80

Tested by

no test coverage detected