From 0529ecfe1b43d40e40755a2d856188d3ded2c14e Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 18 Nov 2009 14:52:52 +0100 Subject: Big refactoring/cleaning in the spasre module with in particular the addition of a selfadjointView, and the extension of triangularView. The rest is cleaning and does not change/extend the API. --- test/sparse_product.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/sparse_product.cpp') diff --git a/test/sparse_product.cpp b/test/sparse_product.cpp index 3f0e793d5..e944d6c53 100644 --- a/test/sparse_product.cpp +++ b/test/sparse_product.cpp @@ -114,10 +114,10 @@ template void sparse_product(const SparseMatrixType& VERIFY_IS_APPROX(mS.transpose().conjugate(), mS); VERIFY_IS_APPROX(mS, refS); VERIFY_IS_APPROX(x=mS*b, refX=refS*b); - // TODO properly implement triangular/selfadjoint views -// VERIFY_IS_APPROX(x=mUp.template marked()*b, refX=refS*b); -// VERIFY_IS_APPROX(x=mLo.template marked()*b, refX=refS*b); -// VERIFY_IS_APPROX(x=mS.template marked()*b, refX=refS*b); + + VERIFY_IS_APPROX(x=mUp.template selfadjointView()*b, refX=refS*b); + VERIFY_IS_APPROX(x=mLo.template selfadjointView()*b, refX=refS*b); + VERIFY_IS_APPROX(x=mS.template selfadjointView()*b, refX=refS*b); } } -- cgit v1.2.3