Skip to content

Commit

Permalink
Remove fractional binding
Browse files Browse the repository at this point in the history
We will be open sourcing NengoSPA under the GPLv2 license.
Fractional binding is patent protected so we are removing it
so that users do not use patented systems without realizing it.
  • Loading branch information
tbekolay committed Nov 15, 2023
1 parent ecfbc6b commit 93db0e3
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 260 deletions.
1 change: 0 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ Feature highlights
structures. Different binding operations/algebras can be mixed in a single
model.
- Seamless integration with non-SPA Nengo models.
- Binding powers and fractional bindings.


Project status
Expand Down
4 changes: 0 additions & 4 deletions docs/modules/nengo_spa.algebras.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ Base classes

.. automodule:: nengo_spa.algebras.base
:members:
:show-inheritance:
:undoc-members:

.. autosummary::
Expand All @@ -40,7 +39,6 @@ Holographic reduced representations (HRR)

.. automodule:: nengo_spa.algebras.hrr_algebra
:members:
:show-inheritance:
:undoc-members:

.. autosummary::
Expand All @@ -55,7 +53,6 @@ Vector-derived transformation binding (VTB)

.. automodule:: nengo_spa.algebras.vtb_algebra
:members:
:show-inheritance:
:undoc-members:

.. autosummary::
Expand All @@ -70,7 +67,6 @@ Transposed vector-derived transformation binding (TVTB)

.. automodule:: nengo_spa.algebras.tvtb_algebra
:members:
:show-inheritance:
:undoc-members:

.. autosummary::
Expand Down
26 changes: 0 additions & 26 deletions docs/pyplots/power_similarity.py

This file was deleted.

1 change: 0 additions & 1 deletion docs/user-guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ User Guide
examples/intro-coming-from-legacy-spa.ipynb
examples/custom-module.ipynb
user-guide/algebras
user-guide/fractional-binding
212 changes: 0 additions & 212 deletions docs/user-guide/fractional-binding.rst

This file was deleted.

5 changes: 0 additions & 5 deletions nengo_spa/ast/symbolic.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,6 @@ def __truediv__(self, other):
type_ = infer_types(self, other)
return PointerSymbol(self._expr_tree / other._expr_tree, type_)

@symbolic_op
def __pow__(self, other):
type_ = infer_types(self, other)
return PointerSymbol(self._expr_tree**other._expr_tree, type_)

def dot(self, other):
other = as_symbolic_node(other)
if not isinstance(other, PointerSymbol):
Expand Down
11 changes: 0 additions & 11 deletions nengo_spa/ast/tests/test_symbolic.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,6 @@ def test_binary_operation_on_pointer_symbols(op, rng):
assert_equal(node.output, vocab.parse("A" + op + "B").v)


@pytest.mark.parametrize("scalar", [3, np.float64(3)])
def test_pow_operation_on_pointer_symbols(scalar, rng):
vocab = spa.Vocabulary(16, pointer_gen=rng)
vocab.populate("A")

with spa.Network():
x = eval("PointerSymbol('A', TVocabulary(vocab)) ** scalar")
node = x.construct()
assert_equal(node.output, vocab.parse("A ** 3").v)


def test_pointer_symbol_mul_with_array():
with pytest.raises(TypeError):
PointerSymbol("X") * np.array([1, 2])
Expand Down

0 comments on commit 93db0e3

Please sign in to comment.