Anonymous avatar Anonymous committed 2ac3bec

move BandMatrix and TridiagonalMatrix to the internal:: namespace

Comments (0)

Files changed (3)

Eigen/src/Core/BandMatrix.h

 #ifndef EIGEN_BANDMATRIX_H
 #define EIGEN_BANDMATRIX_H
 
+namespace internal {
+
 /**
   * \class BandMatrix
   * \ingroup Core_Module
   * \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> >
 {
     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> >
   protected:
 };
 
+} // end namespace internal
+
 #endif // EIGEN_BANDMATRIX_H

Eigen/src/Core/util/ForwardDeclarations.h

 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;

test/bandmatrix.cpp

 
 }
 
+using Eigen::internal::BandMatrix;
+
 void test_bandmatrix()
 {
   typedef BandMatrix<float>::Index Index;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.