> You can also define __array_priority__  in your class. If your class isn't a
> subclass, then numpy will always call your class methods whether or not your
> class is on the right or left. Sounds like you don't want to sublass ndarray
> here so that should work.

Excellent!  This sounds like exactly what I was hoping for.  I assume
in my case, I just need __array_priority__ > 10 to gain priority over
a matrix (from reading
http://docs.scipy.org/doc/numpy/reference/arrays.classes.html).  Is
that correct?

Thanks!

--Hoyt

++++++++++++++++++++++++++++++++++++++++++++++++
+ Hoyt Koepke
+ University of Washington Department of Statistics
+ http://www.stat.washington.edu/~hoytak/
+ hoy...@gmail.com
++++++++++++++++++++++++++++++++++++++++++
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to