<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/121811>121811</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
More floating point operations for matrix types
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
StreetwareGames
</td>
</tr>
</table>
<pre>
Not sure if this is on the roadmap for matrix types already since they're still experimental and in development, but some operations like negation and taking the absolute value of every component in a matrix can be very useful. There's probably more but these are directly from my project.
abs() on matrix: if I have a box and it has a 3x3 matrix associated with it, taking abs() of the matrix can be used to calculate the absolute scale.
Negation on matrix: we can already add and subtract matrices together. Being able to negate a matrix in its entirety seems like a missing feature to me. (i.e. `mat3 m = ...; m = -m;`)
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxck82So0YMx5-muaiGgmYwcOAwky2ncshekhcQtDCd7Q-qJWzz9imwXbuzpy6BPn76S0JmewlEvao_Vf0tw1XmmPp_JBHJDRP9iZ44G6LZ-u9RgNdEYCeQ2TJYhhhAZoIU0XhcYIoJPEqyd5BtIQZ0idBswDaMtLtuSjeJgMU6B3RfKFlPQdABBgM2gKErubjsH5X-A4ZVgKMniAslFBsDg7M_CAJdDvOIE_xhw-VAwYGjW4Xgim4liBPQldIGY_RLDBRkL4IvyhEDDASHx8o0rS6Hf2dKpHTDsKQ44OA28DHRgSIzMQEmAmMTjeI2mFL04Lfd-T8aJVfFhyo-cGClW6W7XaJHMVV97NL9BTNeCRCGeH80LTAjA0J1r15cyBxHi0IGblZmsIcYzzZ_yT0dPX9tZmUyIBFGdOPqUOirLjyioyfl95eIXyBvdKR6zQ6NOTh5HSThKA_PkRgkXkhmSjl80gPM0V75mA39VNkGsMJAQWwi2YCJ_HOMCN4y78EToezbJRE85aB0a_P9PRUepQIPqvoGeZ6r6vNpvHlVfapToXSXmb4yXdVhRn3ZVKeybeqiy-a-aJrR1B2RaTtDdTO1pn4f8N2cptF09ZjZXhe6LsriVLZlq7tc65b0UAxt1Wht2lq9F-TRuty5q89jumSWeaW-1GVblpnDgRwf96N1oBscf5XW-zmlfg96G9YLq_fCWRb-mUasOOr_3ldrchFlF2GJNsivu_77RWVrcv0ssrCqPpQ-K32-WJnXIR-jV_q8Z38-b8-NVPp8MLHS5yf0tdf_BwAA__8jplp3">