Am 09.03.2014 10:09, schrieb Christophe Bal:
Sorry to say that but I think that this is really a wrong use of *. Why ? *Just
use SageMath <http://www.sagemath.org/doc/tutorial/tour_linalg.html>,
or open any math book* and you will see that * is the matrix
multiplication. You can't see "Most of project", that sounds like lobbying.
Please, don't forget the math users !
I guess you meant to direct this to njs :-)
For my part, I really think that it could be better to use a symmetric
approach.
1. Matrix multiplication will use * as it is done in math.
2. Element wise multiplication can use something like ° that could be
better because it is near from the dot scalar of two vectors. *I do not
think that @ is really intuitive. *
A math user of Sympy, Numpy and Scipy that will note appreciate to use @
for the matrix multiplication.
Well, if we pushed for a scalar product in Python, we should push for
"proper math notation", i.e. <x, y>.
I wouldn't push for °. Not everybody can type it easily on their
keyboard, plus people wouldn't expect it to be used for that (they'd
expect a temperature or an angle, or a placeholder for an arbitrary
operator if doing group theory).
The question, however, is: Would anybody here be willing and able to
invest the effort required to push for any language change PEP?
I could set up the language design, but I lack the time to implement the
proof of concept, and my Python experience isn't good enough to judge
all the ramifications.
If there are no volunteers, I guess we shouldn't be doing PEPs.
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/531C85FC.4010707%40durchholz.org.
For more options, visit https://groups.google.com/d/optout.