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

Method SetSimMat

tensor/tensorcore/simatgrid.go:44–52  ·  view source on GitHub ↗

SetSimMat sets the similarity matrix and triggers a display update

(smat *simat.SimMat)

Source from the content-addressed store, hash-verified

42
43// SetSimMat sets the similarity matrix and triggers a display update
44func (tg *SimMatGrid) SetSimMat(smat *simat.SimMat) *SimMatGrid {
45 tg.SimMat = smat
46 tg.Tensor = smat.Mat
47 if tg.Tensor != nil {
48 tg.Display.FromMeta(tg.Tensor)
49 }
50 tg.Update()
51 return tg
52}
53
54func (tg *SimMatGrid) SizeLabel(lbs []string, col bool) (minBlank, ngps int, sz math32.Vector2) {
55 mx := 0

Callers

nothing calls this directly

Calls 2

FromMetaMethod · 0.80
UpdateMethod · 0.65

Tested by

no test coverage detected