aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/Fuzzy.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-01-05 10:57:14 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-01-05 10:57:14 +0000
commitd1d55e67e967a9bd0d447a7ea105ac2771cde557 (patch)
tree53e40f4b87664c47c67f0394bc617999ad64ecf3 /Eigen/src/Core/Fuzzy.h
parent23ffede3d0d280962bad418a41957cf82e3fadc9 (diff)
- make MatrixBase and all expressions aware of their preferred traversal order.
Honor this preference in operator=. - add several methods to the API - rework API for diagonal matrices - add benchmarking code
Diffstat (limited to 'Eigen/src/Core/Fuzzy.h')
-rw-r--r--Eigen/src/Core/Fuzzy.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Eigen/src/Core/Fuzzy.h b/Eigen/src/Core/Fuzzy.h
index bd3219568..6cf076cdc 100644
--- a/Eigen/src/Core/Fuzzy.h
+++ b/Eigen/src/Core/Fuzzy.h
@@ -30,7 +30,7 @@ template<typename Scalar, typename Derived>
template<typename OtherDerived>
bool MatrixBase<Scalar, Derived>::isApprox(
const OtherDerived& other,
- const typename NumTraits<Scalar>::Real& prec
+ const typename NumTraits<Scalar>::Real& prec = precision<Scalar>()
) const
{
assert(rows() == other.rows() && cols() == other.cols());
@@ -51,7 +51,7 @@ bool MatrixBase<Scalar, Derived>::isApprox(
template<typename Scalar, typename Derived>
bool MatrixBase<Scalar, Derived>::isMuchSmallerThan(
const typename NumTraits<Scalar>::Real& other,
- const typename NumTraits<Scalar>::Real& prec
+ const typename NumTraits<Scalar>::Real& prec = precision<Scalar>()
) const
{
if(IsVectorAtCompileTime)
@@ -71,7 +71,7 @@ template<typename Scalar, typename Derived>
template<typename OtherDerived>
bool MatrixBase<Scalar, Derived>::isMuchSmallerThan(
const MatrixBase<Scalar, OtherDerived>& other,
- const typename NumTraits<Scalar>::Real& prec
+ const typename NumTraits<Scalar>::Real& prec = precision<Scalar>()
) const
{
assert(rows() == other.rows() && cols() == other.cols());