e4deccd98b73c918f582297050ecaf899e5387eb,ristretto/tests/test_svd.py,,test_rsvd_float64,#,12

Before Change


    A = A.dot( A.T )
    U, s, Vt = rsvd(A, k=k, p=5, q=2)
    Ak = U.dot(np.diag(s).dot(Vt))
    percent_error = 100 * np.linalg.norm(A - Ak) / np.linalg.norm(A)

    assert percent_error < atol_float64

After Change


    // test transposed
    A = A[:, :50].T

    U, s, Vt = rsvd(A, k, oversample=5, n_subspace=2)
    Ak = U.dot(np.diag(s).dot(Vt))

    assert relative_error(A, Ak) < atol_float64

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 11

Instances


Project Name: erichson/ristretto
Commit Name: e4deccd98b73c918f582297050ecaf899e5387eb
Time: 2018-05-24
Author: jknox13@uw.edu
File Name: ristretto/tests/test_svd.py
Class Name:
Method Name: test_rsvd_float64


Project Name: erichson/ristretto
Commit Name: e4deccd98b73c918f582297050ecaf899e5387eb
Time: 2018-05-24
Author: jknox13@uw.edu
File Name: ristretto/tests/test_lu.py
Class Name:
Method Name: test_rlu_complex128


Project Name: erichson/ristretto
Commit Name: e4deccd98b73c918f582297050ecaf899e5387eb
Time: 2018-05-24
Author: jknox13@uw.edu
File Name: ristretto/tests/test_svd.py
Class Name:
Method Name: test_rsvd_complex128


Project Name: erichson/ristretto
Commit Name: e4deccd98b73c918f582297050ecaf899e5387eb
Time: 2018-05-24
Author: jknox13@uw.edu
File Name: ristretto/tests/test_lu.py
Class Name:
Method Name: test_rlu_float64


Project Name: erichson/ristretto
Commit Name: e4deccd98b73c918f582297050ecaf899e5387eb
Time: 2018-05-24
Author: jknox13@uw.edu
File Name: ristretto/tests/test_svd.py
Class Name:
Method Name: test_rsvd_float64