Hacker News new | ask | show | jobs
by hk__2 4367 days ago
That’s true, but you already can overload other operators like __mul__ to have `x.T() * M * x`.
1 comments

__mul__ has been used for elementwise multiplication in numerical python for the past 18 years or so. You can argue if it was a good choice or not, but it's a bit too entrenched to change now.