Coerce default epsilon values to Type

This commit is contained in:
Julian Kent
2021-01-13 10:17:09 +01:00
committed by Julian Kent
parent 054f8b12f4
commit d540ca5de2
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -605,7 +605,7 @@ Matrix<Type, M, N> operator*(Type scalar, const Matrix<Type, M, N> &other)
template<typename Type, size_t M, size_t N>
bool isEqual(const Matrix<Type, M, N> &x,
const Matrix<Type, M, N> &y, const Type eps=1e-4f) {
const Matrix<Type, M, N> &y, const Type eps=Type(1e-4f)) {
for (size_t i = 0; i < M; i++) {
for (size_t j = 0; j < N; j++) {
if (!isEqualF(x(i,j), y(i,j), eps)) {