matrix: debug build fix for braces and defines
This commit is contained in:
parent
3f909dd273
commit
1b96816bd3
@ -43,11 +43,12 @@ test_identity (const matrix &m) {
|
|||||||
|
|
||||||
for (unsigned int i = 0; i < m.rows (); ++i)
|
for (unsigned int i = 0; i < m.rows (); ++i)
|
||||||
for (unsigned int j = 0; j < m.columns (); ++j)
|
for (unsigned int j = 0; j < m.columns (); ++j)
|
||||||
if (i == j)
|
if (i == j) {
|
||||||
CHECK_HARD (almost_equal (m[i][j], 1.0));
|
CHECK_HARD (almost_equal (m[i][j], 1.0));
|
||||||
else
|
} else {
|
||||||
CHECK_HARD (almost_equal (m[i][j], 0.0));
|
CHECK_HARD (almost_equal (m[i][j], 0.0));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Loading…
Reference in New Issue
Block a user