summaryrefslogtreecommitdiff
path: root/numpy/linalg/linalg.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2018-02-13 11:25:23 -0700
committerGitHub <noreply@github.com>2018-02-13 11:25:23 -0700
commitab8603e5594c22cc69326089cce0deea38f01c40 (patch)
tree1658fdf607358151d19d914ea248d180672c0586 /numpy/linalg/linalg.py
parent76f0eafbaba73815710612bddf4bf6eef682965d (diff)
downloadnumpy-ab8603e5594c22cc69326089cce0deea38f01c40.tar.gz
MAINT: Small grammar fixes to documentation.
[ci skip]
Diffstat (limited to 'numpy/linalg/linalg.py')
-rw-r--r--numpy/linalg/linalg.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/linalg/linalg.py b/numpy/linalg/linalg.py
index 33371bc87..de25d25e9 100644
--- a/numpy/linalg/linalg.py
+++ b/numpy/linalg/linalg.py
@@ -1546,7 +1546,7 @@ def cond(x, p=None):
else:
r = s[..., 0] / s[..., -1]
else:
- # Call inv(x) ignoring errors: the result array will be
+ # Call inv(x) ignoring errors. The result array will
# contain nans in the entries where inversion failed.
_assertRankAtLeast2(x)
_assertNdSquareness(x)
@@ -1557,7 +1557,7 @@ def cond(x, p=None):
r = norm(x, p, axis=(-2, -1)) * norm(invx, p, axis=(-2, -1))
r = r.astype(result_t, copy=False)
- # Convert nans to infs, unless the original array had nan entries
+ # Convert nans to infs unless the original array had nan entries
r = asarray(r)
nan_mask = isnan(r)
if nan_mask.any():