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

Method Sequential

tensor/table/indexview.go:76–85  ·  view source on GitHub ↗

Sequential sets indexes to sequential row-wise indexes into table

()

Source from the content-addressed store, hash-verified

74
75// Sequential sets indexes to sequential row-wise indexes into table
76func (ix *IndexView) Sequential() { //types:add
77 if ix.Table == nil || ix.Table.Rows <= 0 {
78 ix.Indexes = nil
79 return
80 }
81 ix.Indexes = make([]int, ix.Table.Rows)
82 for i := range ix.Indexes {
83 ix.Indexes[i] = i
84 }
85}
86
87// Permuted sets indexes to a permuted order -- if indexes already exist
88// then existing list of indexes is permuted, otherwise a new set of

Callers 8

OpenCSVMethod · 0.95
OpenFSMethod · 0.95
SetTableMethod · 0.95
GoUpdatePlotMethod · 0.80
UpdatePlotMethod · 0.80
genPlotMethod · 0.80
AsyncUpdateTableMethod · 0.80
UpdateSliceSizeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected