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 🪢

The result of binding (multiplicative composition) of hypervectors. Unlike BindDirect, Knot tracks its member parts for serialization and debugging. See Composites: Knot.

Constructor

# Not directly constructed in Python. Use hv.bind() instead.
k = hv.bind(a, b)

Extending a Knot

An existing Knot can be extended with additional parts via expand. This mutates the Knot in place — equivalent to re-binding all parts from scratch but without reconstructing the base.

k = hv.bind(a, b)
k.expand(c)       # k is now equivalent to hv.bind(a, b, c)

If you need to preserve the original, clone before expanding — see the Expand operator section for full examples including clone-first patterns.

Last change: , commit: 0c01fa5