Skip to content

Commit 7194038

Browse files
araujomsjishnub
authored andcommitted
clarify eigen docstring (#1364)
Closes #1174 `eigen` is in fact guaranteed to return normalized eigenvectors in the general case, and orthonormal eigenvectors in the Hermitian case, and the docstring should state so. (cherry picked from commit c4a477f)
1 parent 7264a49 commit 7194038

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/eigen.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ end
182182
eigen(A; permute::Bool=true, scale::Bool=true, sortby) -> Eigen
183183
184184
Compute the eigenvalue decomposition of `A`, returning an [`Eigen`](@ref) factorization object `F`
185-
which contains the eigenvalues in `F.values` and the eigenvectors in the columns of the
185+
which contains the eigenvalues in `F.values` and the normalized eigenvectors in the columns of the
186186
matrix `F.vectors`. This corresponds to solving an eigenvalue problem of the form
187187
`Ax = λx`, where `A` is a matrix, `x` is an eigenvector, and `λ` is an eigenvalue.
188188
(The `k`th eigenvector can be obtained from the slice `F.vectors[:, k]`.)

src/symmetriceigen.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ end
3131
eigen(A::Union{Hermitian, Symmetric}; alg::LinearAlgebra.Algorithm = LinearAlgebra.default_eigen_alg(A)) -> Eigen
3232
3333
Compute the eigenvalue decomposition of `A`, returning an [`Eigen`](@ref) factorization object `F`
34-
which contains the eigenvalues in `F.values` and the eigenvectors in the columns of the
34+
which contains the eigenvalues in `F.values` and the orthonormal eigenvectors in the columns of the
3535
matrix `F.vectors`. (The `k`th eigenvector can be obtained from the slice `F.vectors[:, k]`.)
3636
3737
Iterating the decomposition produces the components `F.values` and `F.vectors`.
@@ -76,7 +76,7 @@ eigen!(A::RealHermSymComplexHerm{<:BlasReal,<:StridedMatrix}, irange::UnitRange)
7676
eigen(A::Union{SymTridiagonal, Hermitian, Symmetric}, irange::UnitRange) -> Eigen
7777
7878
Compute the eigenvalue decomposition of `A`, returning an [`Eigen`](@ref) factorization object `F`
79-
which contains the eigenvalues in `F.values` and the eigenvectors in the columns of the
79+
which contains the eigenvalues in `F.values` and the orthonormal eigenvectors in the columns of the
8080
matrix `F.vectors`. (The `k`th eigenvector can be obtained from the slice `F.vectors[:, k]`.)
8181
8282
Iterating the decomposition produces the components `F.values` and `F.vectors`.
@@ -101,7 +101,7 @@ eigen!(A::RealHermSymComplexHerm{T,<:StridedMatrix}, vl::Real, vh::Real) where {
101101
eigen(A::Union{SymTridiagonal, Hermitian, Symmetric}, vl::Real, vu::Real) -> Eigen
102102
103103
Compute the eigenvalue decomposition of `A`, returning an [`Eigen`](@ref) factorization object `F`
104-
which contains the eigenvalues in `F.values` and the eigenvectors in the columns of the
104+
which contains the eigenvalues in `F.values` and the orthonormal eigenvectors in the columns of the
105105
matrix `F.vectors`. (The `k`th eigenvector can be obtained from the slice `F.vectors[:, k]`.)
106106
107107
Iterating the decomposition produces the components `F.values` and `F.vectors`.

0 commit comments

Comments
 (0)