mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Add serialization for sparse matrix and sparse vector.
This commit is contained in:
@@ -670,6 +670,12 @@ bool test_isCwiseApprox(const DenseBase<Derived1>& m1,
|
||||
return true;
|
||||
}
|
||||
|
||||
template <typename Derived1, typename Derived2>
|
||||
bool test_isCwiseApprox(const SparseMatrixBase<Derived1>& m1,
|
||||
const SparseMatrixBase<Derived2>& m2, bool exact) {
|
||||
return test_isCwiseApprox(m1.toDense(), m2.toDense(), exact);
|
||||
}
|
||||
|
||||
template<typename T, typename U>
|
||||
bool test_is_equal(const T& actual, const U& expected, bool expect_equal)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user