From 6da5d87f9258c27a1fb142d7cb5ec915497fbeeb Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 27 Jan 2016 17:26:48 +0100 Subject: add nomalloc unit test for rank2 updates --- test/nomalloc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/nomalloc.cpp') 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 void nomalloc(const MatrixType& m) VERIFY_IS_APPROX(m2,m2); m2.template selfadjointView().rankUpdate(m1.col(0),-1); - m2.template selfadjointView().rankUpdate(m1.row(0),-1); + m2.template selfadjointView().rankUpdate(m1.row(0),-1); + m2.template selfadjointView().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().rankUpdate(m1); -- cgit v1.2.3