Update .travis.yml

This commit is contained in:
Martin Kroeker 2021-05-24 22:53:11 +02:00 committed by GitHub
parent aa0ac6f34a
commit c9faf98d47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 10 deletions

View File

@ -279,16 +279,7 @@ matrix:
script: script:
- travis_wait 45 make && make lapack-test - travis_wait 45 make && make lapack-test
- pip install numpy - pip install numpy
- echo -e "import numpy as np\nvalues = [-20, 2, 3, 4, 5, 4, 3, 2]\n\ - echo -e "import numpy as np\nvalues = [-20, 2, 3, 4, 5, 4, 3, 2]\nvalues = values[int(non_zero[0]):int(np.non_zero[-1])+1]\n\_, e = np.frexp(values[::-1])\nc = int(-0.5 * (np.max(e) + np.min(e)))\np = values[::-1]\np = np.ldexp(p, c)\nA = np.diag(np.full(p.size - 2, p[0]), k=-1)\nA[0,:] = -p[1:]\neigenvalues = np.linalg.eigvals(A)\nprint(eigenvalues)\n" >linalgtest.py
values = values[int(non_zero[0]):int(np.non_zero[-1])+1]\n\
_, e = np.frexp(values[::-1])\n\
c = int(-0.5 * (np.max(e) + np.min(e)))\n\
p = values[::-1]\n\
p = np.ldexp(p, c)\n\
A = np.diag(np.full(p.size - 2, p[0]), k=-1)\n\
A[0,:] = -p[1:]\n\
eigenvalues = np.linalg.eigvals(A)\n\
print(eigenvalues)\n" >linalgtest.py
- python3 linalgtest.py - python3 linalgtest.py
# whitelist # whitelist
branches: branches: