mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
Add unit test for dense = SparseQR::matrixQ
This commit is contained in:
parent
62f21e2d11
commit
23535ed31c
@ -89,6 +89,11 @@ template<typename Scalar> void test_sparseqr_scalar()
|
|||||||
QtQ = Q * Q.adjoint();
|
QtQ = Q * Q.adjoint();
|
||||||
idM.resize(Q.rows(), Q.rows()); idM.setIdentity();
|
idM.resize(Q.rows(), Q.rows()); idM.setIdentity();
|
||||||
VERIFY(idM.isApprox(QtQ));
|
VERIFY(idM.isApprox(QtQ));
|
||||||
|
|
||||||
|
// Q to dense
|
||||||
|
DenseMat dQ;
|
||||||
|
dQ = solver.matrixQ();
|
||||||
|
VERIFY_IS_APPROX(Q, dQ);
|
||||||
}
|
}
|
||||||
void test_sparseqr()
|
void test_sparseqr()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user