Get rid of include directives inside namespace blocks (bug #339).

This commit is contained in:
Jitse Niesen
2012-04-15 11:06:28 +01:00
parent 84c93b048e
commit 3c412183b2
280 changed files with 1006 additions and 179 deletions

View File

@@ -28,6 +28,8 @@
#include "StemFunction.h"
namespace Eigen {
#if defined(_MSC_VER) || defined(__FreeBSD__)
template <typename Scalar> Scalar log2(Scalar v) { using std::log; return log(v)/log(Scalar(2)); }
#endif
@@ -462,4 +464,6 @@ const MatrixExponentialReturnValue<Derived> MatrixBase<Derived>::exp() const
return MatrixExponentialReturnValue<Derived>(derived());
}
} // end namespace Eigen
#endif // EIGEN_MATRIX_EXPONENTIAL

View File

@@ -29,6 +29,8 @@
#include "MatrixFunctionAtomic.h"
namespace Eigen {
/** \ingroup MatrixFunctions_Module
* \brief Class for computing matrix functions.
* \tparam MatrixType type of the argument of the matrix function,
@@ -598,4 +600,6 @@ const MatrixFunctionReturnValue<Derived> MatrixBase<Derived>::cosh() const
return MatrixFunctionReturnValue<Derived>(derived(), StdStemFunctions<ComplexScalar>::cosh);
}
} // end namespace Eigen
#endif // EIGEN_MATRIX_FUNCTION

View File

@@ -25,6 +25,8 @@
#ifndef EIGEN_MATRIX_FUNCTION_ATOMIC
#define EIGEN_MATRIX_FUNCTION_ATOMIC
namespace Eigen {
/** \ingroup MatrixFunctions_Module
* \class MatrixFunctionAtomic
* \brief Helper class for computing matrix functions of atomic matrices.
@@ -139,4 +141,6 @@ bool MatrixFunctionAtomic<MatrixType>::taylorConverged(Index s, const MatrixType
return false;
}
} // end namespace Eigen
#endif // EIGEN_MATRIX_FUNCTION_ATOMIC

View File

@@ -30,6 +30,8 @@
#define M_PI 3.141592653589793238462643383279503L
#endif
namespace Eigen {
/** \ingroup MatrixFunctions_Module
* \class MatrixLogarithmAtomic
* \brief Helper class for computing matrix logarithm of atomic matrices.
@@ -503,4 +505,6 @@ const MatrixLogarithmReturnValue<Derived> MatrixBase<Derived>::log() const
return MatrixLogarithmReturnValue<Derived>(derived());
}
} // end namespace Eigen
#endif // EIGEN_MATRIX_LOGARITHM

View File

@@ -25,6 +25,8 @@
#ifndef EIGEN_MATRIX_SQUARE_ROOT
#define EIGEN_MATRIX_SQUARE_ROOT
namespace Eigen {
/** \ingroup MatrixFunctions_Module
* \brief Class for computing matrix square roots of upper quasi-triangular matrices.
* \tparam MatrixType type of the argument of the matrix square root,
@@ -492,4 +494,6 @@ const MatrixSquareRootReturnValue<Derived> MatrixBase<Derived>::sqrt() const
return MatrixSquareRootReturnValue<Derived>(derived());
}
} // end namespace Eigen
#endif // EIGEN_MATRIX_FUNCTION

View File

@@ -25,6 +25,8 @@
#ifndef EIGEN_STEM_FUNCTION
#define EIGEN_STEM_FUNCTION
namespace Eigen {
/** \ingroup MatrixFunctions_Module
* \brief Stem functions corresponding to standard mathematical functions.
*/
@@ -113,4 +115,6 @@ class StdStemFunctions
}; // end of class StdStemFunctions
} // end namespace Eigen
#endif // EIGEN_STEM_FUNCTION