bug #1391: include IO.h before DenseBase to enable its usage in DenseBase plugins.

This commit is contained in:
Gael Guennebaud 2017-02-13 09:46:20 +01:00
parent 2ca3eb8407
commit 6bceebfabf
3 changed files with 12 additions and 16 deletions

View File

@ -409,6 +409,7 @@ using std::ptrdiff_t;
// on CUDA devices // on CUDA devices
#include "src/Core/arch/CUDA/Complex.h" #include "src/Core/arch/CUDA/Complex.h"
#include "src/Core/IO.h"
#include "src/Core/DenseCoeffsBase.h" #include "src/Core/DenseCoeffsBase.h"
#include "src/Core/DenseBase.h" #include "src/Core/DenseBase.h"
#include "src/Core/MatrixBase.h" #include "src/Core/MatrixBase.h"
@ -456,7 +457,6 @@ using std::ptrdiff_t;
#include "src/Core/Redux.h" #include "src/Core/Redux.h"
#include "src/Core/Visitor.h" #include "src/Core/Visitor.h"
#include "src/Core/Fuzzy.h" #include "src/Core/Fuzzy.h"
#include "src/Core/IO.h"
#include "src/Core/Swap.h" #include "src/Core/Swap.h"
#include "src/Core/CommaInitializer.h" #include "src/Core/CommaInitializer.h"
#include "src/Core/GeneralProduct.h" #include "src/Core/GeneralProduct.h"

View File

@ -463,7 +463,17 @@ template<typename Derived> class DenseBase
EIGEN_DEVICE_FUNC EIGEN_DEVICE_FUNC
void visit(Visitor& func) const; void visit(Visitor& func) const;
inline const WithFormat<Derived> format(const IOFormat& fmt) const; /** \returns a WithFormat proxy object allowing to print a matrix the with given
* format \a fmt.
*
* See class IOFormat for some examples.
*
* \sa class IOFormat, class WithFormat
*/
inline const WithFormat<Derived> format(const IOFormat& fmt) const
{
return WithFormat<Derived>(derived(), fmt);
}
/** \returns the unique coefficient of a 1x1 expression */ /** \returns the unique coefficient of a 1x1 expression */
EIGEN_DEVICE_FUNC EIGEN_DEVICE_FUNC

View File

@ -109,20 +109,6 @@ class WithFormat
IOFormat m_format; IOFormat m_format;
}; };
/** \returns a WithFormat proxy object allowing to print a matrix the with given
* format \a fmt.
*
* See class IOFormat for some examples.
*
* \sa class IOFormat, class WithFormat
*/
template<typename Derived>
inline const WithFormat<Derived>
DenseBase<Derived>::format(const IOFormat& fmt) const
{
return WithFormat<Derived>(derived(), fmt);
}
namespace internal { namespace internal {
// NOTE: This helper is kept for backward compatibility with previous code specializing // NOTE: This helper is kept for backward compatibility with previous code specializing