Re:Show HN: Matrix Multiplication with Half the Multiplications
by pclmulqdq on Friday March 15, 2024 @02:47PM
(#39719274)
In hardware, you control your integer widths completely, so if you add two 32-bit ints to a 33-bit int, there is no chance of overflow. The same goes for multiplications, etc.
[ Parent
| on HN ]
Re:Show HN: Matrix Multiplication with Half the Multiplications
by SJC_Hacker on Monday March 18, 2024 @01:03AM
(#39740664)
Yeah with shifts you can guarantee no overflow, but you have to decide under what circumstances is avoiding overflow/clipping worth the loss of precision.
Fixed point typically requires alot more programming, but sometimes its worth it if you know what the data ranges are.