diff options
author | Gael Guennebaud <g.gael@free.fr> | 2008-08-21 13:17:21 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2008-08-21 13:17:21 +0000 |
commit | f729fc1d70e69d547bd5bd48678823dd9580bb7e (patch) | |
tree | 8bda3fea98536ed0a0ae7f8597eadd3c01175e3b /Eigen/src/Core/Swap.h | |
parent | 591d497b848844dbae9ac3f38ad2d45241a05470 (diff) |
* Add the possibility to customize the output of matrices, e.g.:
IoFormat OctaveFmt(4, AlignCols, ", ", ";\n", "", "", "[", "]");
cout << mat.format(OctaveFmt);
The first "4" is the precision.
Documentation missing.
* Some compilation fixes
Diffstat (limited to 'Eigen/src/Core/Swap.h')
-rw-r--r-- | Eigen/src/Core/Swap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/Swap.h b/Eigen/src/Core/Swap.h index 31e8170f5..835fa61b2 100644 --- a/Eigen/src/Core/Swap.h +++ b/Eigen/src/Core/Swap.h @@ -130,7 +130,7 @@ template<typename Derived> template<typename OtherDerived> void MatrixBase<Derived>::swap(const MatrixBase<OtherDerived>& other) { - SwapWrapper<Derived>(derived()).lazyAssign(other); + (SwapWrapper<Derived>(derived())).lazyAssign(other); } #endif // EIGEN_SWAP_H |