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

Method Floats

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

Floats sets []float64 slice of all elements in the tensor (length is ensured to be sufficient). This can be used for all of the gonum/floats methods for basic math, gonum/stats, etc.

(flt *[]float64)

Source from the content-addressed store, hash-verified

86 // This can be used for all of the gonum/floats methods
87 // for basic math, gonum/stats, etc.
88 Floats(flt *[]float64)
89
90 // SetFloats sets tensor values from a []float64 slice (copies values).
91 SetFloats(vals []float64)

Callers 5

TestTensorStringFunction · 0.65
TestTensorFloat64Function · 0.65
TableColMethod · 0.65
TensorFunction · 0.65
TensorsFunction · 0.65

Implementers 1

Bitstensor/bits.go

Calls

no outgoing calls

Tested by 2

TestTensorStringFunction · 0.52
TestTensorFloat64Function · 0.52