Quick Sanity check for Mac OS look for accelerate build bugs. Testing numpy polyfit calls init_dgelsd(LAPACK)
()
| 810 | del _sanity_check |
| 811 | |
| 812 | def _mac_os_check(): |
| 813 | """ |
| 814 | Quick Sanity check for Mac OS look for accelerate build bugs. |
| 815 | Testing numpy polyfit calls init_dgelsd(LAPACK) |
| 816 | """ |
| 817 | try: |
| 818 | c = array([3., 2., 1.]) |
| 819 | x = linspace(0, 2, 5) |
| 820 | y = polyval(c, x) |
| 821 | _ = polyfit(x, y, 2, cov=True) |
| 822 | except ValueError: |
| 823 | pass |
| 824 | |
| 825 | if sys.platform == "darwin": |
| 826 | from . import exceptions |
no test coverage detected
searching dependent graphs…