aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-09-23 11:15:36 +0200
committerGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-09-23 11:15:36 +0200
commit62bf04b339d0e393728a561cc236003400c532e9 (patch)
treed863042cbf83d8c46870c8ebc7cf621067b108b2 /test
parente0ea25fc213a49198190ead2cdc9da3d3b59f21e (diff)
Fixed bad memory access in the SVD.
Diffstat (limited to 'test')
-rw-r--r--test/svd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/svd.cpp b/test/svd.cpp
index 8836563d3..3003c9dff 100644
--- a/test/svd.cpp
+++ b/test/svd.cpp
@@ -51,7 +51,7 @@ template<typename MatrixType> void svd(const MatrixType& m)
}
- if (rows==cols)
+ if (rows>=cols)
{
if (ei_is_same_type<RealScalar,float>::ret)
{