def test_eigvals_banded(self):
     assert_no_overwrite(eigvals_banded, [(3,2)])
 def test_lu_factor(self):
     assert_no_overwrite(lu_factor, [(3,3)])
示例#3
0
 def test_cho_factor(self):
     assert_no_overwrite(cho_factor, [(3,3)])
示例#4
0
 def test_eigvalsh(self):
     assert_no_overwrite(eigvalsh, [(3, 3)])
示例#5
0
 def test_solve_triangular(self):
     assert_no_overwrite(solve_triangular, [(3,3), (3,)])
示例#6
0
 def test_det(self):
     assert_no_overwrite(det, [(3,3)])
示例#7
0
 def test_qr(self):
     assert_no_overwrite(qr, [(3, 3)])
 def test_schur_complex(self):
     assert_no_overwrite(lambda a: schur(a, 'complex'), [(3,3)],
                         dtypes=[np.float32, np.float64])
示例#9
0
 def test_lu_solve(self):
     x = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 8]])
     xlu = lu_factor(x)
     assert_no_overwrite(lambda b: lu_solve(xlu, b), [(3, )])
示例#10
0
 def test_lu(self):
     assert_no_overwrite(lu, [(3, 3)])
示例#11
0
 def test_lu_factor(self):
     assert_no_overwrite(lu_factor, [(3, 3)])
示例#12
0
 def test_hessenberg(self):
     assert_no_overwrite(hessenberg, [(3, 3)])
示例#13
0
 def test_eigvals_banded(self):
     assert_no_overwrite(eigvals_banded, [(3, 2)])
 def test_lu(self):
     assert_no_overwrite(lu, [(3,3)])
示例#15
0
 def test_rq(self):
     assert_no_overwrite(rq, [(3, 3)])
 def test_rq(self):
     assert_no_overwrite(rq, [(3,3)])
示例#17
0
 def test_schur(self):
     assert_no_overwrite(schur, [(3, 3)])
 def test_svdvals(self):
     assert_no_overwrite(svdvals, [(3,3)])
示例#19
0
 def test_schur_complex(self):
     assert_no_overwrite(lambda a: schur(a, 'complex'), [(3, 3)],
                         dtypes=[np.float32, np.float64])
示例#20
0
 def test_solveh_banded(self):
     assert_no_overwrite(solveh_banded, [(2,6), (6,)])
示例#21
0
 def test_svd(self):
     assert_no_overwrite(svd, [(3, 3)])
示例#22
0
 def test_pinv2(self):
     assert_no_overwrite(pinv2, [(3,3)])
示例#23
0
 def test_svdvals(self):
     assert_no_overwrite(svdvals, [(3, 3)])
示例#24
0
 def test_cholesky_banded(self):
     assert_no_overwrite(cholesky_banded, [(2,3)])
 def test_cholesky(self):
     assert_no_overwrite(cholesky, [(3, 3)])
 def test_eigvalsh(self):
     assert_no_overwrite(eigvalsh, [(3,3)])
 def test_cho_factor(self):
     assert_no_overwrite(cho_factor, [(3, 3)])
 def test_hessenberg(self):
     assert_no_overwrite(hessenberg, [(3,3)])
 def test_cho_solve(self):
     x = array([[2, -1, 0], [-1, 2, -1], [0, -1, 2]])
     xcho = cho_factor(x)
     assert_no_overwrite(lambda b: cho_solve(xcho, b), [(3, )])
 def test_lu_solve(self):
     x = np.array([[1,2,3], [4,5,6], [7,8,8]])
     xlu = lu_factor(x)
     assert_no_overwrite(lambda b: lu_solve(xlu, b), [(3,)])
 def test_cholesky_banded(self):
     assert_no_overwrite(cholesky_banded, [(2, 3)])
 def test_qr(self):
     assert_no_overwrite(qr, [(3,3)])
 def test_cho_solve_banded(self):
     x = array([[0, -1, -1], [2, 2, 2]])
     xcho = cholesky_banded(x)
     assert_no_overwrite(lambda b: cho_solve_banded((xcho, False), b),
                         [(3, )])
 def test_schur(self):
     assert_no_overwrite(schur, [(3,3)])
示例#35
0
 def test_solve(self):
     assert_no_overwrite(solve, [(3,3), (3,)])
 def test_svd(self):
     assert_no_overwrite(svd, [(3,3)])
示例#37
0
 def test_solve_triangular(self):
     assert_no_overwrite(solve_triangular, [(3,3), (3,)])
示例#38
0
 def test_solve(self):
     assert_no_overwrite(solve, [(3,3), (3,)])
示例#39
0
 def test_solve_banded(self):
     assert_no_overwrite(lambda ab, b: solve_banded((2,1), ab, b),
                         [(4,6), (6,)])
示例#40
0
 def test_solve_banded(self):
     assert_no_overwrite(lambda ab, b: solve_banded((2,1), ab, b),
                         [(4,6), (6,)])
示例#41
0
 def test_solveh_banded(self):
     assert_no_overwrite(solveh_banded, [(2,6), (6,)])
示例#42
0
 def test_inv(self):
     assert_no_overwrite(inv, [(3,3)])
示例#43
0
 def test_det(self):
     assert_no_overwrite(det, [(3,3)])
示例#44
0
 def test_lstsq(self):
     assert_no_overwrite(lstsq, [(3,2), (3,)])
示例#45
0
 def test_lstsq(self):
     assert_no_overwrite(lstsq, [(3,2), (3,)])
示例#46
0
 def test_cholesky(self):
     assert_no_overwrite(cholesky, [(3,3)])
示例#47
0
 def test_pinv(self):
     assert_no_overwrite(pinv, [(3,3)])
示例#48
0
 def test_cho_solve(self):
     x = array([[2,-1,0], [-1,2,-1], [0,-1,2]])
     xcho = cho_factor(x)
     assert_no_overwrite(lambda b: cho_solve(xcho, b), [(3,)])
 def test_eigh(self):
     assert_no_overwrite(eigh, [(3,3)])
     assert_no_overwrite(eigh, [(3,3), (3,3)])
示例#50
0
 def test_cho_solve_banded(self):
     x = array([[0, -1, -1], [2, 2, 2]])
     xcho = cholesky_banded(x)
     assert_no_overwrite(lambda b: cho_solve_banded((xcho, False), b),
                         [(3,)])
示例#51
0
 def test_eigh(self):
     assert_no_overwrite(eigh, [(3, 3)])
     assert_no_overwrite(eigh, [(3, 3), (3, 3)])