8000 DOC: Added docstring to eigvalsh · numpy/numpy@82976c0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 82976c0

Browse files
ovillellaspv
ovillellas
authored andcommitted
DOC: Added docstring to eigvalsh
1 parent 43c25bb commit 82976c0

File tree

1 file changed

+37
-2
lines changed

1 file changed

+37
-2
lines changed

numpy/core/src/umath/gufuncs_linalg.py

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ def multiply4_add(a, b, c, d, e, **kwargs):
804804

805805
def eigh(A, UPLO='L', **kw_args):
806806
"""
807-
Computes the eigen values and eigenvectors for the square matrices
807+
Computes the eigenvalues and eigenvectors for the square matrices
808808
in the inner dimensions of A, being those matrices
809809
symmetric/hermitian.
810810
@@ -857,7 +857,42 @@ def eigh(A, UPLO='L', **kw_args):
857857

858858
def eigvalsh(A, UPLO='L', **kw_args):
859859
"""
860-
Computes the eigen values and eigenvectors for the square matrices in the inner dimensions of A, being those matrices symmetric/hermitian
860+
Computes the eigenvalues for the square matrices in the inner
861+
dimensions of A, being those matrices symmetric/hermitian.
862+
863+
Parameters
864+
----------
865+
A : (<NDIMS>, M, M) array
866+
Hermitian/Symmetric matrices whose eigenvalues and
867+
eigenvectors are to be computed.
868+
UPLO : {'L', 'U'}, optional
869+
Specifies whether the calculation is done with the lower
870+
triangular part of the elements in `A` ('L', default) or
871+
the upper triangular part ('U').
872+
873+
Returns
874+
-------
875+
w : (<NDIMS>, M) array
876+
The eigenvalues, not necessarily ordered.
877+
878+
Notes
879+
-----
880+
Numpy broadcasting rules apply.
881+
882+
The eigenvalues are computed using LAPACK routines _ssyevd, _heevd
883+
884+
Implemented for single, double, csingle and cdouble. Numpy conversion
885+
rules apply.
886+
887+
See Also
888+
--------
889+
eigh : eigenvalues of symmetric/hermitian arrays.
890+
eig : eigenvalues and right eigenvectors for general matrices.
891+
eigvals : eigenvalues for general matrices.
892+
893+
Examples
894+
--------
895+
<Some example in doctest format>
861896
"""
862897
if ('L' == UPLO):
863898
gufunc = _impl.eigvalsh_lo

0 commit comments

Comments
 (0)
0