diff options
author | Gael Guennebaud <g.gael@free.fr> | 2017-02-21 17:04:10 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2017-02-21 17:04:10 +0100 |
commit | b0f55ef85a900a130fe244a0baacd0247db0cb3b (patch) | |
tree | 28b56b9d0cc805d8410ef138c5c5365d5b816f79 /Eigen/src/Core/DenseBase.h | |
parent | d29e9d71192240b7daa5efd477bb72a205b0d9fe (diff) | |
parent | 76687f385c80a4d576d4fadeb271a94d9783b194 (diff) |
merge
Diffstat (limited to 'Eigen/src/Core/DenseBase.h')
-rw-r--r-- | Eigen/src/Core/DenseBase.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Eigen/src/Core/DenseBase.h b/Eigen/src/Core/DenseBase.h index 9cad1aa1e..cd84b07a5 100644 --- a/Eigen/src/Core/DenseBase.h +++ b/Eigen/src/Core/DenseBase.h @@ -463,7 +463,17 @@ template<typename Derived> class DenseBase EIGEN_DEVICE_FUNC 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 */ EIGEN_DEVICE_FUNC |