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

Method get

numpy/_core/code_generators/generate_umath.py:23–29  ·  view source on GitHub ↗

Returns the C #definition name of docstring according to ufunc place. C #definitions are generated by generate_umath_doc.py in a separate C header.

(place)

Source from the content-addressed store, hash-verified

21class docstrings:
22 @staticmethod
23 def get(place):
24 """
25 Returns the C #definition name of docstring according
26 to ufunc place. C #definitions are generated by generate_umath_doc.py
27 in a separate C header.
28 """
29 return 'DOC_' + place.upper().replace('.', '_')
30
31# Sentinel value to specify using the full type description in the
32# function name

Callers 15

__getattribute__Method · 0.45
__setattr__Method · 0.45
_set_printoptionsFunction · 0.45
get_printoptionsFunction · 0.45
_get_legacy_print_modeFunction · 0.45
array2stringFunction · 0.45
fillFormatMethod · 0.45
__call__Method · 0.45
_void_scalar_to_stringFunction · 0.45
dtype_is_impliedFunction · 0.45

Calls 2

replaceMethod · 0.80
upperMethod · 0.80

Tested by 9

test_featuresMethod · 0.36
cpu_haveMethod · 0.36
test_max_minMethod · 0.36
test_scalar_copyMethod · 0.36
to_stringMethod · 0.36
_detected_blasFunction · 0.36
test_against_cmathMethod · 0.36