3 ms·
matrix multiplication with typed values (where each element of the matrix can have a different type/unit of measure) Is this really a common occurrence? In mos
by tremon 4y ago
matrix multiplication with typed values (where each element of the matrix can have a different type/unit of measure)
Is this really a common occurrence? In most situations I've come across, it's the matrix itself (rows/columns) that has a unit of measurement, not the invididual columns. Tensors, rotation matrices, lighting maps: they all use the same units of measurement.
- tsimionescu 4y agoMatrix 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.