Use an aligned IOFormat in the docs

This commit is contained in:
Benoit Jacob
2008-12-06 23:20:30 +00:00
parent 2b20da624a
commit 93c1f62979
4 changed files with 11 additions and 4 deletions

View File

@@ -118,6 +118,10 @@ using Eigen::ei_cos;
#define EIGEN_DEFAULT_IO_FORMAT Eigen::IOFormat()
#endif
// format used in Eigen's documentation
// needed to define it here as escaping characters in CMake add_definition's argument seems very problematic.
#define EIGEN_DOCS_IO_FORMAT IOFormat(3, AlignCols, " ", "\n", "", "")
#define EIGEN_INHERIT_ASSIGNMENT_OPERATOR(Derived, Op) \
template<typename OtherDerived> \
Derived& operator Op(const Eigen::MatrixBase<OtherDerived>& other) \