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

Function wrapper_section

doc/source/reference/simd/gen_features.py:134–142  ·  view source on GitHub ↗
(title, content, tab_size=4)

Source from the content-addressed store, hash-verified

132 return '\n'.join(rows)
133
134def wrapper_section(title, content, tab_size=4):
135 tab = ' '*tab_size
136 if content:
137 return (
138 f"{title}\n{'~'*len(title)}"
139 f"\n.. table::\n{tab}:align: left\n\n"
140 f"{content}\n\n"
141 )
142 return ''
143
144def wrapper_tab(title, table, tab_size=4):
145 tab = ' '*tab_size

Callers 1

gen_features.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected