Update .travis.yml
This commit is contained in:
parent
02087a62e7
commit
58916f6296
16
.travis.yml
16
.travis.yml
|
@ -222,7 +222,7 @@ matrix:
|
||||||
- <<: *test-macos
|
- <<: *test-macos
|
||||||
osx_image: xcode12
|
osx_image: xcode12
|
||||||
before_script:
|
before_script:
|
||||||
- COMMON_FLAGS="DYNAMIC_ARCH=1 NUM_THREADS=32"
|
- COMMON_FLAGS="DYNAMIC_ARCH=1 DYNAMIC_LIST='HASWELL SKYLAKEX COOPERLAKE' NUM_THREADS=32"
|
||||||
- brew update
|
- brew update
|
||||||
script:
|
script:
|
||||||
- travis_wait 45 make QUIET_MAKE=1 $COMMON_FLAGS $BTYPE
|
- travis_wait 45 make QUIET_MAKE=1 $COMMON_FLAGS $BTYPE
|
||||||
|
@ -275,9 +275,21 @@ matrix:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- gfortran
|
- gfortran
|
||||||
|
- python3-pip
|
||||||
script:
|
script:
|
||||||
- travis_wait 45 make && make lapack-test
|
- travis_wait 45 make && make lapack-test
|
||||||
|
- pip install numpy
|
||||||
|
- echo -e "import numpy as np\nvalues = [-20, 2, 3, 4, 5, 4, 3, 2]\n \
|
||||||
|
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
|
||||||
# whitelist
|
# whitelist
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
|
|
Loading…
Reference in New Issue