mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-30 17:40:05 +08:00
move BandMatrix and TridiagonalMatrix to the internal:: namespace
This commit is contained in:
parent
8d2a10c5c1
commit
dc3618a557
@ -25,6 +25,8 @@
|
|||||||
#ifndef EIGEN_BANDMATRIX_H
|
#ifndef EIGEN_BANDMATRIX_H
|
||||||
#define EIGEN_BANDMATRIX_H
|
#define EIGEN_BANDMATRIX_H
|
||||||
|
|
||||||
|
namespace internal {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \class BandMatrix
|
* \class BandMatrix
|
||||||
* \ingroup Core_Module
|
* \ingroup Core_Module
|
||||||
@ -44,7 +46,6 @@
|
|||||||
* \sa class TridiagonalMatrix
|
* \sa class TridiagonalMatrix
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace internal {
|
|
||||||
template<typename _Scalar, int Rows, int Cols, int Supers, int Subs, int Options>
|
template<typename _Scalar, int Rows, int Cols, int Supers, int Subs, int Options>
|
||||||
struct traits<BandMatrix<_Scalar,Rows,Cols,Supers,Subs,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
|
Flags = LvalueBit
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
|
||||||
|
|
||||||
template<typename _Scalar, int Rows, int Cols, int Supers, int Subs, int Options>
|
template<typename _Scalar, int Rows, int Cols, int Supers, int Subs, int Options>
|
||||||
class BandMatrix : public EigenBase<BandMatrix<_Scalar,Rows,Cols,Supers,Subs,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:
|
protected:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // end namespace internal
|
||||||
|
|
||||||
#endif // EIGEN_BANDMATRIX_H
|
#endif // EIGEN_BANDMATRIX_H
|
||||||
|
@ -128,7 +128,9 @@ template<typename DecompositionType> struct image_retval_base;
|
|||||||
template<typename DecompositionType> struct image_retval;
|
template<typename DecompositionType> struct image_retval;
|
||||||
} // end namespace internal
|
} // 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;
|
template<typename _Scalar, int Rows=Dynamic, int Cols=Dynamic, int Supers=Dynamic, int Subs=Dynamic, int Options=0> class BandMatrix;
|
||||||
|
}
|
||||||
|
|
||||||
namespace internal {
|
namespace internal {
|
||||||
template<typename Lhs, typename Rhs> struct product_type;
|
template<typename Lhs, typename Rhs> struct product_type;
|
||||||
|
@ -73,6 +73,8 @@ template<typename MatrixType> void bandmatrix(const MatrixType& _m)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
using Eigen::internal::BandMatrix;
|
||||||
|
|
||||||
void test_bandmatrix()
|
void test_bandmatrix()
|
||||||
{
|
{
|
||||||
typedef BandMatrix<float>::Index Index;
|
typedef BandMatrix<float>::Index Index;
|
||||||
|
Loading…
Reference in New Issue
Block a user