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

Function generate_api

numpy/core/code_generators/generate_numpy_api.py:143–152  ·  view source on GitHub ↗
(output_dir, force=False)

Source from the content-addressed store, hash-verified

141"""
142
143def generate_api(output_dir, force=False):
144 basename = 'multiarray_api'
145
146 h_file = os.path.join(output_dir, '__%s.h' % basename)
147 c_file = os.path.join(output_dir, '__%s.c' % basename)
148 targets = (h_file, c_file)
149
150 sources = numpy_api.multiarray_api
151 do_generate_api(targets, sources)
152 return targets
153
154def do_generate_api(targets, sources):
155 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