Hello, in the draft PEP, I can see : In numerical code, there are two important operations which compete for use of the * operator: elementwise multiplication, and matrix multiplication. Most Python code uses the * operator for the former, leaving no operator for matrix multiplication. Matrix multiplication is uniquely deserving of a new, dedicated infix operator
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 ! 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. Christophe BAL 2014-03-09 8:54 GMT+01:00 Joachim Durchholz <[email protected]>: > One criticism on your PR. > > The claim is that @ is a majority vote of relevant projects, but when I > look at the actual list of projects, I'm seeing that 60% of the projects > still need to implement @. > That's quite far from a majority vote, and you're not listing projects > that oppose the idea. > Also, majority isn't a good yardstick for language design; I'd prefer if > that argument were put into perspective. > > > -- > 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/531C1E44.7040500%40durchholz.org. > > For more options, visit https://groups.google.com/d/optout. > -- 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/CAAb4jGnEcy57Yb0DDnb4%2Bv592m%3DxQEQucO6Uq3C-y3Yhy1hotw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
