diff options
author | rgommers <ralf.gommers@googlemail.com> | 2011-03-03 14:13:28 +0800 |
---|---|---|
committer | rgommers <ralf.gommers@googlemail.com> | 2011-03-03 14:13:28 +0800 |
commit | 821afc8f1376a634612e182903c06a0c9c556d94 (patch) | |
tree | 909d7f649c4db817a1c0f1e8fc9f1934584242b9 /numpy/linalg | |
parent | 85813a9a2eb163582cb518f0fe5d632b662ad0c7 (diff) | |
download | numpy-821afc8f1376a634612e182903c06a0c9c556d94.tar.gz |
DOC: commit some more fixes from the doc wiki.
Diffstat (limited to 'numpy/linalg')
-rw-r--r-- | numpy/linalg/linalg.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/numpy/linalg/linalg.py b/numpy/linalg/linalg.py index c23338cd8..87be0e8a3 100644 --- a/numpy/linalg/linalg.py +++ b/numpy/linalg/linalg.py @@ -1567,8 +1567,8 @@ def slogdet(a): Parameters ---------- - a : array_like, shape (M, M) - Input array. + a : array_like + Input array, has to be a square 2-D array. Returns ------- @@ -1580,18 +1580,22 @@ def slogdet(a): The natural log of the absolute value of the determinant. If the determinant is zero, then `sign` will be 0 and `logdet` will be - -Inf. In all cases, the determinant is equal to `sign * np.exp(logdet)`. + -Inf. In all cases, the determinant is equal to ``sign * np.exp(logdet)``. + + See Also + -------- + det Notes ----- The determinant is computed via LU factorization using the LAPACK routine z/dgetrf. - .. versionadded:: 2.0.0. + .. versionadded:: 1.6.0. Examples -------- - The determinant of a 2-D array [[a, b], [c, d]] is ad - bc: + The determinant of a 2-D array ``[[a, b], [c, d]]`` is ``ad - bc``: >>> a = np.array([[1, 2], [3, 4]]) >>> (sign, logdet) = np.linalg.slogdet(a) @@ -1607,10 +1611,6 @@ def slogdet(a): >>> np.linalg.slogdet(np.eye(500) * 0.1) (1, -1151.2925464970228) - See Also - -------- - det - """ a = asarray(a) _assertRank2(a) |