- Added constants.h

- Finished Exponential Tests
 - Fixed HTML labeling
This commit is contained in:
2025-06-30 20:01:53 -04:00
parent f38cf5fb51
commit 516d9f4977
24 changed files with 613 additions and 44 deletions

View File

@@ -114,7 +114,7 @@ constexpr matrix<scalar, rows, cols...> inverse(const matrix<scalar, rows, cols.
// Should check for 0 determinant
scalar invdet = (s0 * c5 - s1 * c4 + s2 * c3 + s3 * c2 - s4 * c1 + s5 * c0);
invdet = invdet ? 1.0 / invdet : 0;
invdet = invdet ? 1.0 / invdet : 0; // this will get reduced to cmov, div still happens
matrix<scalar, rows, cols...> i(
( m[1][1] * c5 - m[1][2] * c4 + m[1][3] * c3) * invdet