3 ms·
This is this[1] workaround. I wonder if a whole set of infix matrix operations could be added to reduce the need to load numpy for simple tasks. A @* B
by akehrer 13y ago
This is this[1] workaround.
I wonder if a whole set of infix matrix operations could be added to reduce the need to load numpy for simple tasks.
A @* B
A @. B
A @+ B
[1] http://code.activestate.com/recipes/384122/ http://code.activestate.com/recipes/384122/
- pcarbonn 13y agoYes, but making it part of the language would bring clear error messages in case of misuse, and would allow the use of a different token, e.g. ":", as in smalltalk