summaryrefslogtreecommitdiff
path: root/numpy/linalg
diff options
context:
space:
mode:
authorStefan van der Walt <stefan@sun.ac.za>2008-05-19 21:42:16 +0000
committerStefan van der Walt <stefan@sun.ac.za>2008-05-19 21:42:16 +0000
commit399147b0b20e32bbb0af62db9bc1fe1100770063 (patch)
tree34bf4723406a98cd2ce602e8a59e47e1965fee28 /numpy/linalg
parent7ee9981d88525a9b09df86643c15306e1e5f5e58 (diff)
downloadnumpy-399147b0b20e32bbb0af62db9bc1fe1100770063.tar.gz
Fix math markup in docstrings.
Diffstat (limited to 'numpy/linalg')
-rw-r--r--numpy/linalg/linalg.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/linalg/linalg.py b/numpy/linalg/linalg.py
index 9202e30b7..4231bae51 100644
--- a/numpy/linalg/linalg.py
+++ b/numpy/linalg/linalg.py
@@ -390,7 +390,7 @@ def cholesky(a):
def qr(a, mode='full'):
"""Compute QR decomposition of a matrix.
- Calculate the decomposition :lm:`A = Q R` where Q is orthonormal
+ Calculate the decomposition :math:`A = Q R` where Q is orthonormal
and R upper triangular.
Parameters
@@ -1114,9 +1114,9 @@ def det(a):
# Linear Least Squares
def lstsq(a, b, rcond=-1):
- """Compute least-squares solution to equation :m:`a x = b`
+ """Compute least-squares solution to equation :math:`a x = b`
- Compute a vector x such that the 2-norm :m:`|b - a x|` is minimised.
+ Compute a vector x such that the 2-norm :math:`|b - a x|` is minimised.
Parameters
----------
@@ -1134,7 +1134,7 @@ def lstsq(a, b, rcond=-1):
x : array, shape (N,) or (N, K) depending on shape of b
Least-squares solution
residues : array, shape () or (1,) or (K,)
- Sums of residues, squared 2-norm for each column in :m:`b - a x`
+ Sums of residues, squared 2-norm for each column in :math:`b - a x`
If rank of matrix a is < N or > M this is an empty array.
If b was 1-d, this is an (1,) shape array, otherwise the shape is (K,)
rank : integer