2 from scipy.sparse
import csc_matrix
6 rng = np.random.default_rng()
9 def test(SolverType: type):
11 A = rng.random((dim, dim))
12 A = (A + A.T) * 0.5 + np.diag(10.0 + rng.random(dim))
18 assert llt.info() == eigenpy.ComputationInfo.Success
20 X = rng.random((dim, 20))
31 test(eigenpy.AccelerateLLT)
32 test(eigenpy.AccelerateLDLT)
33 test(eigenpy.AccelerateLDLTUnpivoted)
34 test(eigenpy.AccelerateLDLTSBK)
35 test(eigenpy.AccelerateLDLTTPP)
36 test(eigenpy.AccelerateQR)