This website works better with JavaScript.
Home
Help
Sign In
lolengine
/
lol
mirror of
https://github.com/lolengine/lol
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
math: fix a warning in the matrix determinant code.
legacy
Sam Hocevar
4 years ago
parent
54335bd5aa
commit
369f2b902f
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/lol/math/matrix.h
+ 1
- 1
src/lol/math/matrix.h
View File
@@ -469,7 +469,7 @@ T determinant(mat_t<T, N, N> const &m)
{
auto lup = lu_decomposition(m);
T det(std::get<2>(lup));
T det(
T(
std::get<2>(lup
)
));
for (int i = 0; i < N; ++i)
det *= std::get<0>(lup)[i][i];
Write
Preview
Loading…
Cancel
Save