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

Method Range

tensor/tensor.go:118–118  ·  view source on GitHub ↗

Range returns the min, max (and associated indexes, -1 = no values) for the tensor. This is needed for display and is thus in the core api in optimized form Other math operations can be done using gonum/floats package.

()

Source from the content-addressed store, hash-verified

116 // This is needed for display and is thus in the core api in optimized form
117 // Other math operations can be done using gonum/floats package.
118 Range() (min, max float64, minIndex, maxIndex int)
119
120 // SetZeros is simple convenience function initialize all values to 0
121 SetZeros()

Callers 1

UpdateRangeMethod · 0.65

Implementers 1

Bitstensor/bits.go

Calls

no outgoing calls

Tested by

no test coverage detected