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

Method NumDims

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

NumDims returns the total number of dimensions.

()

Source from the content-addressed store, hash-verified

68
69// NumDims returns the total number of dimensions.
70func (sh *Shape) NumDims() int { return len(sh.Sizes) }
71
72// DimSize returns the size of given dimension.
73func (sh *Shape) DimSize(i int) int { return sh.Sizes[i] }

Callers 2

IndexIsValidMethod · 0.95
TableHeadersMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected