mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-10 23:21:47 +08:00
bug #1391: include IO.h before DenseBase to enable its usage in DenseBase plugins.
This commit is contained in:
parent
2ca3eb8407
commit
6bceebfabf
@ -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"
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user