6 rng = np.random.default_rng()
8 A = rng.random((dim, dim))
9 A = (A + A.T) * 0.5 + np.diag(10.0 + rng.random(dim))
11 ldlt = eigenpy.LDLT(A)
15 P = ldlt.transpositionsP()
18 np.transpose(P).dot(L.dot(np.diag(D).dot(np.transpose(L).dot(P)))), A
21 X = rng.random((dim, 20))