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

Function _maketup

numpy/core/numeric.py:2112–2120  ·  view source on GitHub ↗
(descr, val)

Source from the content-addressed store, hash-verified

2110
2111
2112def _maketup(descr, val):
2113 dt = dtype(descr)
2114 # Place val in all scalar tuples:
2115 fields = dt.fields
2116 if fields is None:
2117 return val
2118 else:
2119 res = [_maketup(fields[name][0], val) for name in dt.names]
2120 return tuple(res)
2121
2122
2123@set_array_function_like_doc

Callers

nothing calls this directly

Calls 1

dtypeFunction · 0.85

Tested by

no test coverage detected