From c29c7b0ea95b86f73d77224efb26f96abdc189ac Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 3 Sep 2008 20:52:26 +0000 Subject: Fix bugs reported by Timothy Hunter: * CholeskyWithoutSqrt with 1x1 matrices * .part() Updated unit tests to handle these cases --- test/triangular.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/triangular.cpp') diff --git a/test/triangular.cpp b/test/triangular.cpp index 22a19f974..2ada0dd90 100644 --- a/test/triangular.cpp +++ b/test/triangular.cpp @@ -81,6 +81,8 @@ template void triangular(const MatrixType& m) m1.template part() = (m2.transpose() * m2).lazy(); VERIFY_IS_APPROX(m3.template part(), m1); + VERIFY_IS_APPROX(m3.template part(), m3.diagonal().asDiagonal()); + m1 = MatrixType::Random(rows, cols); for (int i=0; i(); -- cgit v1.2.3