- Added constants.h
- Finished Exponential Tests - Fixed HTML labeling
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user