Lines Matching defs:positive
58 MatrixType unitary, positive;
59 svd.computeUnitaryPositive(&unitary, &positive);
61 VERIFY_IS_APPROX(positive, positive.adjoint());
62 for(int i = 0; i < rows; i++) VERIFY(positive.diagonal()[i] >= 0); // cheap necessary (not sufficient) condition for positivity
63 VERIFY_IS_APPROX(unitary*positive, a);
65 svd.computePositiveUnitary(&positive, &unitary);
67 VERIFY_IS_APPROX(positive, positive.adjoint());
68 for(int i = 0; i < rows; i++) VERIFY(positive.diagonal()[i] >= 0); // cheap necessary (not sufficient) condition for positivity
69 VERIFY_IS_APPROX(positive*unitary, a);