(*arrays)
| 213 | raise LinAlgError('Last 2 dimensions of the array must be square') |
| 214 | |
| 215 | def _assert_finite(*arrays): |
| 216 | for a in arrays: |
| 217 | if not isfinite(a).all(): |
| 218 | raise LinAlgError("Array must not contain infs or NaNs") |
| 219 | |
| 220 | def _is_empty_2d(arr): |
| 221 | # check size first for efficiency |
no test coverage detected