mirror of
https://github.com/g-truc/glm.git
synced 2024-11-29 19:34:36 +00:00
std::abs instead of just abs. Fixes compilation issues with gcc.
This commit is contained in:
parent
da47fac384
commit
a4a6ea2825
@ -16,7 +16,7 @@ int test_qr(matType<C, R, T, P> m) {
|
|||||||
|
|
||||||
for (glm::length_t i = 0; i < C; i++) {
|
for (glm::length_t i = 0; i < C; i++) {
|
||||||
for (glm::length_t j = 0; j < R; j++) {
|
for (glm::length_t j = 0; j < R; j++) {
|
||||||
if (abs(err[i][j]) > epsilon) return 1;
|
if (std::abs(err[i][j]) > epsilon) return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -25,7 +25,7 @@ int test_qr(matType<C, R, T, P> m) {
|
|||||||
if ((length(q[i]) - 1) > epsilon) return 2;
|
if ((length(q[i]) - 1) > epsilon) return 2;
|
||||||
|
|
||||||
for (glm::length_t j = 0; j<i; j++) {
|
for (glm::length_t j = 0; j<i; j++) {
|
||||||
if (abs(dot(q[i], q[j])) > epsilon) return 3;
|
if (std::abs(dot(q[i], q[j])) > epsilon) return 3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ int test_rq(matType<C, R, T, P> m) {
|
|||||||
|
|
||||||
for (glm::length_t i = 0; i < C; i++) {
|
for (glm::length_t i = 0; i < C; i++) {
|
||||||
for (glm::length_t j = 0; j < R; j++) {
|
for (glm::length_t j = 0; j < R; j++) {
|
||||||
if (abs(err[i][j]) > epsilon) return 1;
|
if (std::abs(err[i][j]) > epsilon) return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -64,7 +64,7 @@ int test_rq(matType<C, R, T, P> m) {
|
|||||||
if ((length(tq[i]) - 1) > epsilon) return 2;
|
if ((length(tq[i]) - 1) > epsilon) return 2;
|
||||||
|
|
||||||
for (glm::length_t j = 0; j<i; j++) {
|
for (glm::length_t j = 0; j<i; j++) {
|
||||||
if (abs(dot(tq[i], tq[j])) > epsilon) return 3;
|
if (std::abs(dot(tq[i], tq[j])) > epsilon) return 3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user