diff options
author | Gael Guennebaud <g.gael@free.fr> | 2016-02-12 15:58:31 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2016-02-12 15:58:31 +0100 |
commit | 0a537cb2d87ada8206ec2271fb9f2904a18ccfce (patch) | |
tree | b6efed7b0954cfcde0867218157a48bfbc5e491c /test/sparse_basic.cpp | |
parent | b35d1a122ec2702cb5e6a262b6d34b3098f998b3 (diff) |
bug #901: fix triangular-view with unit diagonal of sparse rectangular matrices.
Diffstat (limited to 'test/sparse_basic.cpp')
-rw-r--r-- | test/sparse_basic.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/sparse_basic.cpp b/test/sparse_basic.cpp index 0a06c828b..cb8ebaedf 100644 --- a/test/sparse_basic.cpp +++ b/test/sparse_basic.cpp @@ -21,8 +21,8 @@ template<typename SparseMatrixType> void sparse_basic(const SparseMatrixType& re const Index rows = ref.rows(); const Index cols = ref.cols(); - const Index inner = ref.innerSize(); - const Index outer = ref.outerSize(); + //const Index inner = ref.innerSize(); + //const Index outer = ref.outerSize(); typedef typename SparseMatrixType::Scalar Scalar; enum { Flags = SparseMatrixType::Flags }; @@ -327,7 +327,6 @@ template<typename SparseMatrixType> void sparse_basic(const SparseMatrixType& re m3 = m2.template triangularView<Upper>(); VERIFY_IS_APPROX(m3, refMat3); - if(inner>=outer) // FIXME this should be implemented for outer>inner as well { refMat3 = refMat2.template triangularView<UnitUpper>(); m3 = m2.template triangularView<UnitUpper>(); |