Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Knot 🪢

Knot 🪢 contains the result of binding (multiplicative composition) of hypervectors, while tracking its member parts for serialization and introspection. See Composites: Knot.

Constructor

# More commonly via the bind operator:
k = hv.bind(a, b)

Extending a Knot

An existing Knot can be extended with additional parts via expand. This returns a new Knot (as a Knot is an immutable value) — equivalent to re-binding all parts from scratch but without reconstructing the base.

k = hv.bind(a, b)
k2 = k.expand(c)  # k2 is equivalent to hv.bind(a, b, c); k is unchanged
Last change: , commit: 7d713c7