mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
many small fixes and documentation improvements,
this should be alpha5.
This commit is contained in:
@@ -218,7 +218,7 @@ MatrixBase<Derived>::constant(const Scalar& value)
|
||||
}
|
||||
|
||||
template<typename Derived>
|
||||
bool MatrixBase<Derived>::isEqualToConstant
|
||||
bool MatrixBase<Derived>::isApproxToConstant
|
||||
(const Scalar& value, typename NumTraits<Scalar>::Real prec) const
|
||||
{
|
||||
for(int j = 0; j < cols(); j++)
|
||||
@@ -408,7 +408,7 @@ template<typename Derived>
|
||||
bool MatrixBase<Derived>::isOnes
|
||||
(typename NumTraits<Scalar>::Real prec) const
|
||||
{
|
||||
return isEqualToConstant(Scalar(1), prec);
|
||||
return isApproxToConstant(Scalar(1), prec);
|
||||
}
|
||||
|
||||
/** Sets all coefficients in this expression to one.
|
||||
|
||||
Reference in New Issue
Block a user