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

Function _padwithtens

numpy/lib/tests/test_arraypad.py:1214–1216  ·  view source on GitHub ↗
(vector, pad_width, iaxis, kwargs)

Source from the content-addressed store, hash-verified

1212
1213def test_legacy_vector_functionality():
1214 def _padwithtens(vector, pad_width, iaxis, kwargs):
1215 vector[:pad_width[0]] = 10
1216 vector[-pad_width[1]:] = 10
1217
1218 a = np.arange(6).reshape(2, 3)
1219 a = np.pad(a, 2, _padwithtens)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected