How to properly and stylishly write code with a new matrix multiplication operator ? And why?
A@ B
?
A@B
?
A @ B
?
The PEP465 uses the third recording option, but for me it is too long. And unusual. And the second is short. And the first is completely incomprehensible. The numpy
documentation, for example, does not use the symbol at all, replacing everything with A.matmul(B)
. Strange general operator. Why is PEP8 silent on this?