News for hackers. Stuff that matters.
Re:PEP 465 – Dedicated infix operators for matrix multiplica... by GFK_of_xmaspast on Saturday March 15, 2014 @10:30PM (#7407530)
Matlab is a horror but one thing they do do well is .* and * for the two multiplies.
Re:PEP 465 – Dedicated infix operators for matrix multiplica... by synparb on Saturday March 15, 2014 @11:00PM (#7407593)
Julia also adopted this syntax, and I'm not sure if I like it. In numpy at least, I find myself doing element-wise multiplication much more frequently than matrix multiplication, so '.*' always feels clumsy. I'd rather have special syntax for the matrix multiply (and I was a long time matlab user before moving to numpy).