diff options
author | Gael Guennebaud <g.gael@free.fr> | 2016-01-27 17:26:48 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2016-01-27 17:26:48 +0100 |
commit | 6da5d87f9258c27a1fb142d7cb5ec915497fbeeb (patch) | |
tree | 1cc85d851bb3801889d7d3765655d27e9b3e8493 /test/nomalloc.cpp | |
parent | 9801c959e685a0341fa35c5843ad16a150018f39 (diff) |
add nomalloc unit test for rank2 updates
Diffstat (limited to 'test/nomalloc.cpp')
-rw-r--r-- | test/nomalloc.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/nomalloc.cpp b/test/nomalloc.cpp index 743ee6aa8..50756c2fb 100644 --- a/test/nomalloc.cpp +++ b/test/nomalloc.cpp @@ -78,7 +78,8 @@ template<typename MatrixType> void nomalloc(const MatrixType& m) VERIFY_IS_APPROX(m2,m2); m2.template selfadjointView<Lower>().rankUpdate(m1.col(0),-1); - m2.template selfadjointView<Lower>().rankUpdate(m1.row(0),-1); + m2.template selfadjointView<Upper>().rankUpdate(m1.row(0),-1); + m2.template selfadjointView<Lower>().rankUpdate(m1.col(0), m1.col(0)); // rank-2 // The following fancy matrix-matrix products are not safe yet regarding static allocation m2.template selfadjointView<Lower>().rankUpdate(m1); |