mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
bug #881: make SparseMatrixBase::isApprox(SparseMatrixBase) exploits sparse computations instead of converting the operands to dense matrices.
This commit is contained in:
@@ -304,6 +304,10 @@ template<typename SparseMatrixType> void sparse_basic(const SparseMatrixType& re
|
||||
VERIFY_IS_APPROX(m2.transpose(), refMat2.transpose());
|
||||
|
||||
VERIFY_IS_APPROX(SparseMatrixType(m2.adjoint()), refMat2.adjoint());
|
||||
|
||||
// check isApprox handles opposite storage order
|
||||
typename Transpose<SparseMatrixType>::PlainObject m3(m2);
|
||||
VERIFY(m2.isApprox(m3));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user