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

Method DimSize

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

DimSize returns the size of given dimension.

(i int)

Source from the content-addressed store, hash-verified

71
72// DimSize returns the size of given dimension.
73func (sh *Shape) DimSize(i int) int { return sh.Sizes[i] }
74
75// DimName returns the name of given dimension.
76func (sh *Shape) DimName(i int) string { return sh.Names[i] }

Callers 2

DimSizeByNameMethod · 0.95
TableHeadersMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected