aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/Swap.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2008-08-21 13:17:21 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2008-08-21 13:17:21 +0000
commitf729fc1d70e69d547bd5bd48678823dd9580bb7e (patch)
tree8bda3fea98536ed0a0ae7f8597eadd3c01175e3b /Eigen/src/Core/Swap.h
parent591d497b848844dbae9ac3f38ad2d45241a05470 (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.h2
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