[Numpy-discussion] [RFC] should we argue for a matrix power operator, @@?
Alan G Isaac
alan.isaac at gmail.com
Sun Mar 16 09:07:45 EDT 2014
On 3/15/2014 10:12 PM, Nathaniel Smith wrote:
> So to be clear, even if numpy.matrix is going away, and even if
> ndarray isn't getting a .I attribute, then you're just as happy
> typing/teaching inv(X) as X @@ -1?
Yes, that is correct.
I am somewhat more unhappy with having to use
npla.matrix_power(M,n)
instead of
M@@n
in other teaching settings (e.g., graph theory
and recurrence relations).
I am certainly not objecting to making `@@`
available. It just seems much less important
than getting `@` asap.
Thanks,
Alan Isaac
More information about the NumPy-Discussion
mailing list