MCPcopy Create free account
hub / github.com/numpy/numpy / generate_api

Function generate_api

numpy/core/code_generators/generate_ufunc_api.py:120–129  ·  view source on GitHub ↗
(output_dir, force=False)

Source from the content-addressed store, hash-verified

118"""
119
120def generate_api(output_dir, force=False):
121 basename = 'ufunc_api'
122
123 h_file = os.path.join(output_dir, '__%s.h' % basename)
124 c_file = os.path.join(output_dir, '__%s.c' % basename)
125 targets = (h_file, c_file)
126
127 sources = ['ufunc_api_order.txt']
128 do_generate_api(targets, sources)
129 return targets
130
131def do_generate_api(targets, sources):
132 header_file = targets[0]

Callers 1

mainFunction · 0.70

Calls 2

do_generate_apiFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected