move BandMatrix and TridiagonalMatrix to the internal:: namespace

This commit is contained in:
Benoit Jacob 2010-12-25 17:17:10 -05:00
parent 8d2a10c5c1
commit dc3618a557
3 changed files with 8 additions and 2 deletions

View File

@ -25,6 +25,8 @@
#ifndef EIGEN_BANDMATRIX_H
#define EIGEN_BANDMATRIX_H
namespace internal {
/**
* \class BandMatrix
* \ingroup Core_Module
@ -44,7 +46,6 @@
* \sa class TridiagonalMatrix
*/
namespace internal {
template<typename _Scalar, int Rows, int Cols, int Supers, int Subs, int Options>
struct traits<BandMatrix<_Scalar,Rows,Cols,Supers,Subs,Options> >
{
@ -60,7 +61,6 @@ struct traits<BandMatrix<_Scalar,Rows,Cols,Supers,Subs,Options> >
Flags = LvalueBit
};
};
}
template<typename _Scalar, int Rows, int Cols, int Supers, int Subs, int Options>
class BandMatrix : public EigenBase<BandMatrix<_Scalar,Rows,Cols,Supers,Subs,Options> >
@ -238,4 +238,6 @@ class TridiagonalMatrix : public BandMatrix<Scalar,Size,Size,Options&SelfAdjoint
protected:
};
} // end namespace internal
#endif // EIGEN_BANDMATRIX_H

View File

@ -128,7 +128,9 @@ template<typename DecompositionType> struct image_retval_base;
template<typename DecompositionType> struct image_retval;
} // end namespace internal
namespace internal {
template<typename _Scalar, int Rows=Dynamic, int Cols=Dynamic, int Supers=Dynamic, int Subs=Dynamic, int Options=0> class BandMatrix;
}
namespace internal {
template<typename Lhs, typename Rhs> struct product_type;

View File

@ -73,6 +73,8 @@ template<typename MatrixType> void bandmatrix(const MatrixType& _m)
}
using Eigen::internal::BandMatrix;
void test_bandmatrix()
{
typedef BandMatrix<float>::Index Index;