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

Function _atleast_nd

numpy/core/shape_base.py:553–556  ·  view source on GitHub ↗
(a, ndim)

Source from the content-addressed store, hash-verified

551
552
553def _atleast_nd(a, ndim):
554 # Ensures `a` has at least `ndim` dimensions by prepending
555 # ones to `a.shape` as necessary
556 return array(a, ndmin=ndim, copy=False, subok=True)
557
558
559def _accumulate(values):

Callers 2

_block_info_recursionFunction · 0.85
_blockFunction · 0.85

Calls 1

arrayFunction · 0.90

Tested by

no test coverage detected