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

Function _assert_2d

numpy/linalg/linalg.py:197–201  ·  view source on GitHub ↗
(*arrays)

Source from the content-addressed store, hash-verified

195
196
197def _assert_2d(*arrays):
198 for a in arrays:
199 if a.ndim != 2:
200 raise LinAlgError('%d-dimensional array given. Array must be '
201 'two-dimensional' % a.ndim)
202
203def _assert_stacked_2d(*arrays):
204 for a in arrays:

Callers 2

lstsqFunction · 0.85
multi_dotFunction · 0.85

Calls 1

LinAlgErrorClass · 0.85

Tested by

no test coverage detected