File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 5656colpiv_householder_qr .setThreshold (1e-8 )
5757assert colpiv_householder_qr .threshold () == 1e-8
5858assert eigenpy .is_approx (np .eye (rows , rows ), colpiv_householder_qr .inverse ())
59+
60+ # Test CompleteOrthogonalDecomposition
61+ cod = eigenpy .CompleteOrthogonalDecomposition ()
62+ cod = eigenpy .CompleteOrthogonalDecomposition (rows , cols )
63+ cod = eigenpy .CompleteOrthogonalDecomposition (A )
64+
65+ cod = eigenpy .CompleteOrthogonalDecomposition (np .eye (rows , rows ))
66+ X = rng .random ((rows , 20 ))
67+ assert cod .absDeterminant () == 1.0
68+ assert cod .logAbsDeterminant () == 0.0
69+
70+ Y = cod .solve (X )
71+ assert (X == Y ).all ()
72+ assert cod .rank () == rows
73+
74+ cod .setThreshold (1e-8 )
75+ assert cod .threshold () == 1e-8
76+ assert eigenpy .is_approx (np .eye (rows , rows ), cod .pseudoInverse ())
You can’t perform that action at this time.
0 commit comments