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

Method Clone

tensor/table/splits.go:288–292  ·  view source on GitHub ↗

Clone returns a cloned copy of our splits

()

Source from the content-addressed store, hash-verified

286
287// Clone returns a cloned copy of our splits
288func (spl *Splits) Clone() *Splits {
289 nsp := &Splits{}
290 nsp.CopyFrom(spl)
291 return nsp
292}
293
294// CopyFrom copies from other Splits -- we get our own unique copy of everything
295func (spl *Splits) CopyFrom(osp *Splits) {

Callers 1

ExtractLevelsMethod · 0.95

Calls 1

CopyFromMethod · 0.95

Tested by

no test coverage detected