diff options
| author | Raghuveer Devulapalli <raghuveer.devulapalli@intel.com> | 2021-07-15 14:29:31 -0700 |
|---|---|---|
| committer | Raghuveer Devulapalli <raghuveer.devulapalli@intel.com> | 2021-08-24 08:54:52 -0700 |
| commit | 6fe51131fdd0c9221f23d0f43077bb62915abf67 (patch) | |
| tree | 9653a483ef196395f84099b21b8a6a1204b61676 /numpy | |
| parent | 2ff00617f660da93105510a212c4cd1a99413588 (diff) | |
| download | numpy-6fe51131fdd0c9221f23d0f43077bb62915abf67.tar.gz | |
MAINT: Adhering to pep8 style guide
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/core/code_generators/generate_umath.py | 106 | ||||
| -rw-r--r-- | numpy/core/setup.py | 1 |
2 files changed, 53 insertions, 54 deletions
diff --git a/numpy/core/code_generators/generate_umath.py b/numpy/core/code_generators/generate_umath.py index e03f52fae..66f053a43 100644 --- a/numpy/core/code_generators/generate_umath.py +++ b/numpy/core/code_generators/generate_umath.py @@ -359,7 +359,7 @@ defdict = { docstrings.get('numpy.core.umath.fmod'), None, TD(ints), - TD(flts, f='fmod', astype={'e':'f'}), + TD(flts, f='fmod', astype={'e': 'f'}), TD(P, f='fmod'), ), 'square': @@ -390,7 +390,7 @@ defdict = { docstrings.get('numpy.core.umath.power'), None, TD(ints), - TD(inexact, f='pow', astype={'e':'f'}), + TD(inexact, f='pow', astype={'e': 'f'}), TD(O, f='npy_ObjectPower'), ), 'float_power': @@ -551,13 +551,13 @@ defdict = { Ufunc(2, 1, MinusInfinity, docstrings.get('numpy.core.umath.logaddexp'), None, - TD(flts, f="logaddexp", astype={'e':'f'}) + TD(flts, f="logaddexp", astype={'e': 'f'}) ), 'logaddexp2': Ufunc(2, 1, MinusInfinity, docstrings.get('numpy.core.umath.logaddexp2'), None, - TD(flts, f="logaddexp2", astype={'e':'f'}) + TD(flts, f="logaddexp2", astype={'e': 'f'}) ), 'bitwise_and': Ufunc(2, 1, AllOnes, @@ -605,91 +605,91 @@ defdict = { Ufunc(2, 1, None, docstrings.get('numpy.core.umath.heaviside'), None, - TD(flts, f='heaviside', astype={'e':'f'}), + TD(flts, f='heaviside', astype={'e': 'f'}), ), 'degrees': Ufunc(1, 1, None, docstrings.get('numpy.core.umath.degrees'), None, - TD(fltsP, f='degrees', astype={'e':'f'}), + TD(fltsP, f='degrees', astype={'e': 'f'}), ), 'rad2deg': Ufunc(1, 1, None, docstrings.get('numpy.core.umath.rad2deg'), None, - TD(fltsP, f='rad2deg', astype={'e':'f'}), + TD(fltsP, f='rad2deg', astype={'e': 'f'}), ), 'radians': Ufunc(1, 1, None, docstrings.get('numpy.core.umath.radians'), None, - TD(fltsP, f='radians', astype={'e':'f'}), + TD(fltsP, f='radians', astype={'e': 'f'}), ), 'deg2rad': Ufunc(1, 1, None, docstrings.get('numpy.core.umath.deg2rad'), None, - TD(fltsP, f='deg2rad', astype={'e':'f'}), + TD(fltsP, f='deg2rad', astype={'e': 'f'}), ), 'arccos': Ufunc(1, 1, None, docstrings.get('numpy.core.umath.arccos'), None, - TD('e', f='acos', astype={'e':'f'}), + TD('e', f='acos', astype={'e': 'f'}), TD('fd', simd=[('avx512_skx', 'fd')]), - TD(inexact, f='acos', astype={'e':'f'}), + TD(inexact, f='acos', astype={'e': 'f'}), TD(P, f='arccos'), ), 'arccosh': Ufunc(1, 1, None, docstrings.get('numpy.core.umath.arccosh'), None, - TD('e', f='acosh', astype={'e':'f'}), + TD('e', f='acosh', astype={'e': 'f'}), TD('fd', simd=[('avx512_skx', 'fd')]), - TD(inexact, f='acosh', astype={'e':'f'}), + TD(inexact, f='acosh', astype={'e': 'f'}), TD(P, f='arccosh'), ), 'arcsin': Ufunc(1, 1, None, docstrings.get('numpy.core.umath.arcsin'), None, - TD('e', f='asin', astype={'e':'f'}), + TD('e', f='asin', astype={'e': 'f'}), TD('fd', simd=[('avx512_skx', 'fd')]), - TD(inexact, f='asin', astype={'e':'f'}), + TD(inexact, f='asin', astype={'e': 'f'}), TD(P, f='arcsin'), ), 'arcsinh': Ufunc(1, 1, None, docstrings.get('numpy.core.umath.arcsinh'), None, - TD('e', f='asinh', astype={'e':'f'}), + TD('e', f='asinh', astype={'e': 'f'}), TD('fd', simd=[('avx512_skx', 'fd')]), - TD(inexact, f='asinh', astype={'e':'f'}), + TD(inexact, f='asinh', astype={'e': 'f'}), TD(P, f='arcsinh'), ), 'arctan': Ufunc(1, 1, None, docstrings.get('numpy.core.umath.arctan'), None, - TD('e', f='atan', astype={'e':'f'}), + TD('e', f='atan', astype={'e': 'f'}), TD('fd', simd=[('avx512_skx', 'fd')]), - TD(inexact, f='atan', astype={'e':'f'}), + TD(inexact, f='atan', astype={'e': 'f'}), TD(P, f='arctan'), ), 'arctanh': Ufunc(1, 1, None, docstrings.get('numpy.core.umath.arctanh'), None, - TD('e', f='atanh', astype={'e':'f'}), + TD('e', f='atanh', astype={'e': 'f'}), TD('fd', simd=[('avx512_skx', 'fd')]), - TD(inexact, f='atanh', astype={'e':'f'}), + TD(inexact, f='atanh', astype={'e': 'f'}), TD(P, f='arctanh'), ), 'cos': Ufunc(1, 1, None, docstrings.get('numpy.core.umath.cos'), None, - TD('e', f='cos', astype={'e':'f'}), + TD('e', f='cos', astype={'e': 'f'}), TD('f', dispatch=[('loops_trigonometric', 'f')]), TD('d', simd=[('avx512_skx', 'd')]), TD('fdg' + cmplx, f='cos'), @@ -699,7 +699,7 @@ defdict = { Ufunc(1, 1, None, docstrings.get('numpy.core.umath.sin'), None, - TD('e', f='sin', astype={'e':'f'}), + TD('e', f='sin', astype={'e': 'f'}), TD('f', dispatch=[('loops_trigonometric', 'f')]), TD('d', simd=[('avx512_skx', 'd')]), TD('fdg' + cmplx, f='sin'), @@ -709,43 +709,43 @@ defdict = { Ufunc(1, 1, None, docstrings.get('numpy.core.umath.tan'), None, - TD('e', f='tan', astype={'e':'f'}), + TD('e', f='tan', astype={'e': 'f'}), TD('fd', simd=[('avx512_skx', 'fd')]), - TD(inexact, f='tan', astype={'e':'f'}), + TD(inexact, f='tan', astype={'e': 'f'}), TD(P, f='tan'), ), 'cosh': Ufunc(1, 1, None, docstrings.get('numpy.core.umath.cosh'), None, - TD('e', f='cosh', astype={'e':'f'}), + TD('e', f='cosh', astype={'e': 'f'}), TD('fd', simd=[('avx512_skx', 'fd')]), - TD(inexact, f='cosh', astype={'e':'f'}), + TD(inexact, f='cosh', astype={'e': 'f'}), TD(P, f='cosh'), ), 'sinh': Ufunc(1, 1, None, docstrings.get('numpy.core.umath.sinh'), None, - TD('e', f='sinh', astype={'e':'f'}), + TD('e', f='sinh', astype={'e': 'f'}), TD('fd', simd=[('avx512_skx', 'fd')]), - TD(inexact, f='sinh', astype={'e':'f'}), + TD(inexact, f='sinh', astype={'e': 'f'}), TD(P, f='sinh'), ), 'tanh': Ufunc(1, 1, None, docstrings.get('numpy.core.umath.tanh'), None, - TD('e', f='tanh', astype={'e':'f'}), + TD('e', f='tanh', astype={'e': 'f'}), TD('fd', simd=[('avx512_skx', 'fd')]), - TD(inexact, f='tanh', astype={'e':'f'}), + TD(inexact, f='tanh', astype={'e': 'f'}), TD(P, f='tanh'), ), 'exp': Ufunc(1, 1, None, docstrings.get('numpy.core.umath.exp'), None, - TD('e', f='exp', astype={'e':'f'}), + TD('e', f='exp', astype={'e': 'f'}), TD('fd', dispatch=[('loops_exponent_log', 'fd')]), TD('fdg' + cmplx, f='exp'), TD(P, f='exp'), @@ -754,25 +754,25 @@ defdict = { Ufunc(1, 1, None, docstrings.get('numpy.core.umath.exp2'), None, - TD('e', f='exp2', astype={'e':'f'}), + TD('e', f='exp2', astype={'e': 'f'}), TD('fd', simd=[('avx512_skx', 'fd')]), - TD(inexact, f='exp2', astype={'e':'f'}), + TD(inexact, f='exp2', astype={'e': 'f'}), TD(P, f='exp2'), ), 'expm1': Ufunc(1, 1, None, docstrings.get('numpy.core.umath.expm1'), None, - TD('e', f='expm1', astype={'e':'f'}), + TD('e', f='expm1', astype={'e': 'f'}), TD('fd', simd=[('avx512_skx', 'fd')]), - TD(inexact, f='expm1', astype={'e':'f'}), + TD(inexact, f='expm1', astype={'e': 'f'}), TD(P, f='expm1'), ), 'log': Ufunc(1, 1, None, docstrings.get('numpy.core.umath.log'), None, - TD('e', f='log', astype={'e':'f'}), + TD('e', f='log', astype={'e': 'f'}), TD('fd', dispatch=[('loops_exponent_log', 'fd')]), TD('fdg' + cmplx, f='log'), TD(P, f='log'), @@ -781,34 +781,34 @@ defdict = { Ufunc(1, 1, None, docstrings.get('numpy.core.umath.log2'), None, - TD('e', f='log2', astype={'e':'f'}), + TD('e', f='log2', astype={'e': 'f'}), TD('fd', simd=[('avx512_skx', 'fd')]), - TD(inexact, f='log2', astype={'e':'f'}), + TD(inexact, f='log2', astype={'e': 'f'}), TD(P, f='log2'), ), 'log10': Ufunc(1, 1, None, docstrings.get('numpy.core.umath.log10'), None, - TD('e', f='log10', astype={'e':'f'}), + TD('e', f='log10', astype={'e': 'f'}), TD('fd', simd=[('avx512_skx', 'fd')]), - TD(inexact, f='log10', astype={'e':'f'}), + TD(inexact, f='log10', astype={'e': 'f'}), TD(P, f='log10'), ), 'log1p': Ufunc(1, 1, None, docstrings.get('numpy.core.umath.log1p'), None, - TD('e', f='log1p', astype={'e':'f'}), + TD('e', f='log1p', astype={'e': 'f'}), TD('fd', simd=[('avx512_skx', 'fd')]), - TD(inexact, f='log1p', astype={'e':'f'}), + TD(inexact, f='log1p', astype={'e': 'f'}), TD(P, f='log1p'), ), 'sqrt': Ufunc(1, 1, None, docstrings.get('numpy.core.umath.sqrt'), None, - TD('e', f='sqrt', astype={'e':'f'}), + TD('e', f='sqrt', astype={'e': 'f'}), TD(inexactvec, dispatch=[('loops_unary_fp', 'fd')]), TD('fdg' + cmplx, f='sqrt'), TD(P, f='sqrt'), @@ -817,16 +817,16 @@ defdict = { Ufunc(1, 1, None, docstrings.get('numpy.core.umath.cbrt'), None, - TD('e', f='cbrt', astype={'e':'f'}), + TD('e', f='cbrt', astype={'e': 'f'}), TD('fd', simd=[('avx512_skx', 'fd')]), - TD(flts, f='cbrt', astype={'e':'f'}), + TD(flts, f='cbrt', astype={'e': 'f'}), TD(P, f='cbrt'), ), 'ceil': Ufunc(1, 1, None, docstrings.get('numpy.core.umath.ceil'), None, - TD('e', f='ceil', astype={'e':'f'}), + TD('e', f='ceil', astype={'e': 'f'}), TD(inexactvec, simd=[('fma', 'fd'), ('avx512f', 'fd')]), TD('fdg', f='ceil'), TD(O, f='npy_ObjectCeil'), @@ -835,7 +835,7 @@ defdict = { Ufunc(1, 1, None, docstrings.get('numpy.core.umath.trunc'), None, - TD('e', f='trunc', astype={'e':'f'}), + TD('e', f='trunc', astype={'e': 'f'}), TD(inexactvec, simd=[('fma', 'fd'), ('avx512f', 'fd')]), TD('fdg', f='trunc'), TD(O, f='npy_ObjectTrunc'), @@ -844,14 +844,14 @@ defdict = { Ufunc(1, 1, None, docstrings.get('numpy.core.umath.fabs'), None, - TD(flts, f='fabs', astype={'e':'f'}), + TD(flts, f='fabs', astype={'e': 'f'}), TD(P, f='fabs'), ), 'floor': Ufunc(1, 1, None, docstrings.get('numpy.core.umath.floor'), None, - TD('e', f='floor', astype={'e':'f'}), + TD('e', f='floor', astype={'e': 'f'}), TD(inexactvec, simd=[('fma', 'fd'), ('avx512f', 'fd')]), TD('fdg', f='floor'), TD(O, f='npy_ObjectFloor'), @@ -860,7 +860,7 @@ defdict = { Ufunc(1, 1, None, docstrings.get('numpy.core.umath.rint'), None, - TD('e', f='rint', astype={'e':'f'}), + TD('e', f='rint', astype={'e': 'f'}), TD(inexactvec, simd=[('fma', 'fd'), ('avx512f', 'fd')]), TD('fdg' + cmplx, f='rint'), TD(P, f='rint'), @@ -869,7 +869,7 @@ defdict = { Ufunc(2, 1, None, docstrings.get('numpy.core.umath.arctan2'), None, - TD(flts, f='atan2', astype={'e':'f'}), + TD(flts, f='atan2', astype={'e': 'f'}), TD(P, f='arctan2'), ), 'remainder': @@ -892,7 +892,7 @@ defdict = { Ufunc(2, 1, Zero, docstrings.get('numpy.core.umath.hypot'), None, - TD(flts, f='hypot', astype={'e':'f'}), + TD(flts, f='hypot', astype={'e': 'f'}), TD(P, f='hypot'), ), 'isnan': diff --git a/numpy/core/setup.py b/numpy/core/setup.py index 51573aa73..f9a264e83 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -952,7 +952,6 @@ def configuration(parent_package='',top_path=None): join(codegen_dir, 'generate_ufunc_api.py'), ] - svml_objs = [] if "x86" in platform.machine(): for svmlsrc in os.listdir("numpy/core/src/umath/svml"): |
