mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fiw bug #553: add support for sparse matrix time sparse self-adjoint view products
This commit is contained in:
@@ -201,7 +201,16 @@ template<typename SparseMatrixType> void sparse_product()
|
||||
VERIFY_IS_APPROX(x=mUp.template selfadjointView<Upper>()*b, refX=refS*b);
|
||||
VERIFY_IS_APPROX(x=mLo.template selfadjointView<Lower>()*b, refX=refS*b);
|
||||
VERIFY_IS_APPROX(x=mS.template selfadjointView<Upper|Lower>()*b, refX=refS*b);
|
||||
|
||||
// sparse selfadjointView * sparse
|
||||
SparseMatrixType mSres(rows,rows);
|
||||
VERIFY_IS_APPROX(mSres = mLo.template selfadjointView<Lower>()*mS,
|
||||
refX = refLo.template selfadjointView<Lower>()*refS);
|
||||
// sparse * sparse selfadjointview
|
||||
VERIFY_IS_APPROX(mSres = mS * mLo.template selfadjointView<Lower>(),
|
||||
refX = refS * refLo.template selfadjointView<Lower>());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// New test for Bug in SparseTimeDenseProduct
|
||||
|
||||
Reference in New Issue
Block a user