summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorTyler Reddy <tyler.je.reddy@gmail.com>2018-10-16 11:00:29 -0700
committerTyler Reddy <tyler.je.reddy@gmail.com>2018-10-16 11:00:29 -0700
commit51563caad59fff926d993e20be204e3015999118 (patch)
treefa0112cca50723a4f2ef03523200144859d5799a /numpy
parentdc9b616828f7eda0a932319a24cd61c3a39598c4 (diff)
downloadnumpy-51563caad59fff926d993e20be204e3015999118.tar.gz
MAINT: remove unused _assertSquareness.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/linalg/linalg.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/numpy/linalg/linalg.py b/numpy/linalg/linalg.py
index 855742056..59923f3c5 100644
--- a/numpy/linalg/linalg.py
+++ b/numpy/linalg/linalg.py
@@ -199,11 +199,6 @@ def _assertRankAtLeast2(*arrays):
raise LinAlgError('%d-dimensional array given. Array must be '
'at least two-dimensional' % a.ndim)
-def _assertSquareness(*arrays):
- for a in arrays:
- if max(a.shape) != min(a.shape):
- raise LinAlgError('Array must be square')
-
def _assertNdSquareness(*arrays):
for a in arrays:
m, n = a.shape[-2:]