diff options
author | Gael Guennebaud <g.gael@free.fr> | 2009-11-18 14:52:52 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2009-11-18 14:52:52 +0100 |
commit | 0529ecfe1b43d40e40755a2d856188d3ded2c14e (patch) | |
tree | 8f3cebe51db62e2f65c48d547cc3e89de5285669 /test/sparse_product.cpp | |
parent | 1e62e0b0d823078aa2d9b8ed2c93f7bc889df177 (diff) |
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.
Diffstat (limited to 'test/sparse_product.cpp')
-rw-r--r-- | test/sparse_product.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<typename SparseMatrixType> 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<UpperTriangular|SelfAdjoint>()*b, refX=refS*b); -// VERIFY_IS_APPROX(x=mLo.template marked<LowerTriangular|SelfAdjoint>()*b, refX=refS*b); -// VERIFY_IS_APPROX(x=mS.template marked<SelfAdjoint>()*b, refX=refS*b); + + VERIFY_IS_APPROX(x=mUp.template selfadjointView<UpperTriangular>()*b, refX=refS*b); + VERIFY_IS_APPROX(x=mLo.template selfadjointView<LowerTriangular>()*b, refX=refS*b); + VERIFY_IS_APPROX(x=mS.template selfadjointView<UpperTriangular|LowerTriangular>()*b, refX=refS*b); } } |