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

Method RowCellSize

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

RowCellSize returns the size of the outer-most Row shape dimension, and the size of all the remaining inner dimensions (the "cell" size). Used for Tensors that are columns in a data table.

()

Source from the content-addressed store, hash-verified

84// and the size of all the remaining inner dimensions (the "cell" size).
85// Used for Tensors that are columns in a data table.
86func (tsr *Bits) RowCellSize() (rows, cells int) {
87 return tsr.Shp.RowCellSize()
88}
89
90// Value returns value at given tensor index
91func (tsr *Bits) Value(i []int) bool { j := int(tsr.Shp.Offset(i)); return tsr.Values.Index(j) }

Callers 4

FloatRowCellMethod · 0.95
SetFloatRowCellMethod · 0.95
StringRowCellMethod · 0.95
SetStringRowCellMethod · 0.95

Calls 1

RowCellSizeMethod · 0.65

Tested by

no test coverage detected