MCPcopy Index your code
hub / github.com/numpy/numpy / _mac_os_check

Function _mac_os_check

numpy/__init__.py:812–823  ·  view source on GitHub ↗

Quick Sanity check for Mac OS look for accelerate build bugs. Testing numpy polyfit calls init_dgelsd(LAPACK)

()

Source from the content-addressed store, hash-verified

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

Callers 1

__init__.pyFile · 0.85

Calls 4

polyvalFunction · 0.90
polyfitFunction · 0.90
linspaceFunction · 0.85
arrayFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…