I think I've figured this out.  It seems like the rule in the "Note" box is
the problem.  Since a matrix is not a subclass of my custom class, the
__rmul__ of the matrix is not being called.

Thanks for the info.

Will


On Fri, Jun 7, 2013 at 11:40 AM, Alan G Isaac <[email protected]> wrote:

> On 6/7/2013 12:30 PM, Will Lee wrote:
> > Can somebody tell me why these operations are not the same in numpy?
>
>
> http://docs.python.org/2/reference/datamodel.html#object.__rmul__
>
> hth,
> Alan Isaac
>
> _______________________________________________
> NumPy-Discussion mailing list
> [email protected]
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to