mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix sparse triangular view iterator
This commit is contained in:
committed by
Antonio Sánchez
parent
6d829e766f
commit
e8515f78ac
@@ -746,6 +746,11 @@ template<typename SparseMatrixType> void sparse_basic(const SparseMatrixType& re
|
||||
// check sparse-triangular to dense
|
||||
refMat3 = m2.template triangularView<StrictlyUpper>();
|
||||
VERIFY_IS_APPROX(refMat3, DenseMatrix(refMat2.template triangularView<StrictlyUpper>()));
|
||||
|
||||
// check sparse triangular view iteration-based evaluation
|
||||
m2.setZero();
|
||||
VERIFY_IS_CWISE_EQUAL(m2.template triangularView<UnitLower>().toDense(), DenseMatrix::Identity(rows, cols));
|
||||
VERIFY_IS_CWISE_EQUAL(m2.template triangularView<UnitUpper>().toDense(), DenseMatrix::Identity(rows, cols));
|
||||
}
|
||||
|
||||
// test selfadjointView
|
||||
|
||||
Reference in New Issue
Block a user