News for hackers. Stuff that matters.
Re:The type system is a programmer's best friend by tsimionescu on Saturday November 05, 2022 @03:43PM (#33484875)
Matrix multiplication is often used for solving systems of linear equations, and you often have systems of linear equations involving different physical quantities (such as position, speed, time and mass if solving some classical mechanics equations, or pressure, volume, temperature, and time for thermodynamics etc).

And while it may be relatively common to start out and end up with matrices that have a single unit for each row (but different units on different rows), intermediate results will often end up with different combinations of units in each element.

There are no comments on this comment yet.