Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support dividing a SemanticPointer by a constant float #249

Closed
arvoelke opened this issue Jun 9, 2020 · 0 comments · Fixed by #254
Closed

Support dividing a SemanticPointer by a constant float #249

arvoelke opened this issue Jun 9, 2020 · 0 comments · Fixed by #254

Comments

@arvoelke
Copy link
Contributor

arvoelke commented Jun 9, 2020

The expression:

spa.SemanticPointer(np.zeros(1)) / 2.

produces the error:

TypeError: unsupported operand type(s) for /: 'SemanticPointer' and 'float'

wheras:

spa.SemanticPointer(np.zeros(1)) * (1 / 2)

is a valid expression. I was expecting these two to behave the same.

@jgosmann jgosmann added the bug label Jun 10, 2020
@jgosmann jgosmann added this to the 1.0.2 milestone Jun 10, 2020
jgosmann added a commit that referenced this issue Jun 14, 2020
jgosmann added a commit that referenced this issue Jun 15, 2020
jgosmann added a commit that referenced this issue Jun 15, 2020
jgosmann added a commit that referenced this issue Jun 22, 2020
jgosmann added a commit that referenced this issue Jun 22, 2020
jgosmann added a commit that referenced this issue Jun 22, 2020
jgosmann added a commit that referenced this issue Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants