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