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

Method SubSpace

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

SubSpace returns a new tensor with innermost subspace at given offset(s) in outermost dimension(s) (len(offs) < NumDims). The new tensor points to the values of the this tensor (i.e., modifications will affect both), as its Values slice is a view onto the original (which is why only inner-most conti

(offs []int)

Source from the content-addressed store, hash-verified

111 // is why only inner-most contiguous supsaces are supported).
112 // Use Clone() method to separate the two.
113 SubSpace(offs []int) Tensor
114
115 // Range returns the min, max (and associated indexes, -1 = no values) for the tensor.
116 // This is needed for display and is thus in the core api in optimized form

Callers 9

TestTensorStringFunction · 0.65
TestTensorFloat64Function · 0.65
TensorIndexMethod · 0.65
TensorMethod · 0.65
TableColMethod · 0.65
TensorFunction · 0.65
TensorsFunction · 0.65
ProjectColMethod · 0.65
ProjectColMethod · 0.65

Implementers 1

Bitstensor/bits.go

Calls

no outgoing calls

Tested by 2

TestTensorStringFunction · 0.52
TestTensorFloat64Function · 0.52