Class to experiment with '@'
Hi All, I've attached a subclass of ndarray that implements the new '@' operator for experimentation and comment. It is only intended for playing with that operator and may not work for other things. You will need to install python 3.5.0a1 to play with it. Chuck
<snip> Oops, corrected version attached. I think we need generalized functions in linalg for mat x mat, mat x vec, and vec x mat, and versions that also work for object arrays. I've used einsum in the attached file for the products, but it doesn't work for object arrays. This work is mainly to have a prototype version for the matmul operator that can be used to verify behavior and write some tests. Chuck
On Sun, Aug 3, 2014 at 1:26 PM, Charles R Harris <charlesr.harris@gmail.com> wrote:
<snip>
Oops, corrected version attached. I think we need generalized functions in linalg for mat x mat, mat x vec, and vec x mat, and versions that also work for object arrays. I've used einsum in the attached file for the products, but it doesn't work for object arrays.
This work is mainly to have a prototype version for the matmul operator that can be used to verify behavior and write some tests.
Another fix :( Chuck
participants (1)
-
Charles R Harris