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

Function _assert_stacked_square

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

Source from the content-addressed store, hash-verified

207 'at least two-dimensional' % a.ndim)
208
209def _assert_stacked_square(*arrays):
210 for a in arrays:
211 m, n = a.shape[-2:]
212 if m != n:
213 raise LinAlgError('Last 2 dimensions of the array must be square')
214
215def _assert_finite(*arrays):
216 for a in arrays:

Callers 12

solveFunction · 0.85
invFunction · 0.85
matrix_powerFunction · 0.85
choleskyFunction · 0.85
eigvalsFunction · 0.85
eigvalshFunction · 0.85
eigFunction · 0.85
eighFunction · 0.85
condFunction · 0.85
slogdetFunction · 0.85
detFunction · 0.85
_solveFunction · 0.85

Calls 1

LinAlgErrorClass · 0.85

Tested by

no test coverage detected