generalized ei_traits<>.

Finally the importing macro is named EIGEN_BASIC_PUBLIC_INTERFACE
because it does not only import the ei_traits, it also makes the base class
a friend, etc.
This commit is contained in:
Benoit Jacob
2008-03-12 17:17:36 +00:00
parent 01572b9f54
commit 2ee68a074e
38 changed files with 507 additions and 457 deletions

View File

@@ -49,7 +49,7 @@ bool MatrixBase<Derived>::isApprox(
) const
{
assert(rows() == other.rows() && cols() == other.cols());
if(Traits::IsVectorAtCompileTime)
if(IsVectorAtCompileTime)
{
return((*this - other).norm2() <= std::min(norm2(), other.norm2()) * prec * prec);
}
@@ -79,7 +79,7 @@ bool MatrixBase<Derived>::isMuchSmallerThan(
typename NumTraits<Scalar>::Real prec
) const
{
if(Traits::IsVectorAtCompileTime)
if(IsVectorAtCompileTime)
{
return(norm2() <= ei_abs2(other * prec));
}
@@ -110,7 +110,7 @@ bool MatrixBase<Derived>::isMuchSmallerThan(
) const
{
assert(rows() == other.rows() && cols() == other.cols());
if(Traits::IsVectorAtCompileTime)
if(IsVectorAtCompileTime)
{
return(norm2() <= other.norm2() * prec * prec);
}