MCPcopy
hub / github.com/numpy/numpy / _assert_2d

Function _assert_2d

numpy/linalg/_linalg.py:238–242  ·  view source on GitHub ↗
(*arrays)

Source from the content-addressed store, hash-verified

236
237
238def _assert_2d(*arrays):
239 for a in arrays:
240 if a.ndim != 2:
241 raise LinAlgError(f'{a.ndim}-dimensional array given. Array must be '
242 'two-dimensional')
243
244def _assert_stacked_2d(*arrays):
245 for a in arrays:

Callers 2

lstsqFunction · 0.85
multi_dotFunction · 0.85

Calls 1

LinAlgErrorClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…