6 ms·
Why not just a * As in how ruby does it: http://www.ruby-doc.org/stdlib-2.0/libdoc/matrix/rdoc/Matrix.html#method-i-2A http://www.ruby-doc.org/stdlib-2.0/libdo
by ZirconCode 12y ago
Why not just a *
As in how ruby does it:
http://www.ruby-doc.org/stdlib-2.0/libdoc/matrix/rdoc/Matrix.html#method-i-2A http://www.ruby-doc.org/stdlib-2.0/libdoc/matrix/rdoc/Matrix...
- hoov 12y agoThe * operator is already used for elementwise multiplication.
- dagw 12y agoBecause * is already used for element-wise matrix multiplication.
- dragonwriter 12y agoBecause the whole problem it is solving is that both matrix multiplication and elementwise multiplication are frequently used enough that there is API fragmentation in popular matrix-using Python libraries between places where * is used for matrix multiplication and places where it is used for elementwise multiplication. Read the linked PEP, this is addressed, at length.