Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/s/c/scikits.sparse-0.1/scikits/sparse/test_cholmod.py   scikits.sparse(Download)
import numpy as np
from scipy import sparse
from cholmod import cholesky, cholesky_AAt, analyze, analyze_AAt, CholmodError
 
# At time of writing (scipy 0.7.0), scipy.sparse.csc.csc_matrix explicitly
            assert np.allclose(f1(Xty), answer)
 
            f3 = analyze_AAt(X.T, mode=mode)
            f4 = f3.cholesky(XtX)
            assert np.allclose(f4(Xty), answer)