Skip to content

Commit

Permalink
Improve the docstrings of block-Krylov processes
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Sep 24, 2023
1 parent 55301cf commit 7c57e41
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/block_krylov_processes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#### Output arguments
* `V`: a dense n × p(k+1) matrix;
* `Ψ`: a dense p × p upper triangular matrix;
* `Ψ`: a dense p × p upper triangular matrix such that V₁Ψ = B;
* `T`: a sparse p(k+1) × pk block tridiagonal matrix with a bandwidth p.
"""
function hermitian_lanczos(A, B::AbstractMatrix{FC}, k::Int; algo::String="mgs") where FC <: FloatOrComplex
Expand Down Expand Up @@ -66,10 +66,10 @@ end
#### Output arguments
* `V`: a dense n × p(k+1) matrix;
* `Ψ`: a dense p × p upper triangular matrix;
* `Ψ`: a dense p × p upper triangular matrix such that V₁Ψ = B;
* `T`: a sparse p(k+1) × pk block tridiagonal matrix with a bandwidth p;
* `U`: a dense n × p(k+1) matrix;
* `Φᴴ`: a dense p × p upper triangular matrix;
* `Φᴴ`: a dense p × p upper triangular matrix such that U₁Φᴴ = C;
* `Tᴴ`: a sparse p(k+1) × pk block tridiagonal matrix with a bandwidth p.
"""
function nonhermitian_lanczos(A, B::AbstractMatrix{FC}, C::AbstractMatrix{FC}, k::Int) where FC <: FloatOrComplex
Expand Down Expand Up @@ -158,7 +158,7 @@ end
#### Output arguments
* `V`: a dense n × p(k+1) matrix;
* `Γ`: a dense p × p upper triangular matrix;
* `Γ`: a dense p × p upper triangular matrix such that V₁Γ = B;
* `H`: a dense p(k+1) × pk block upper Hessenberg matrix with a lower bandwidth p.
"""
function arnoldi(A, B::AbstractMatrix{FC}, k::Int; algo::String="mgs", reorthogonalization::Bool=false) where FC <: FloatOrComplex
Expand Down Expand Up @@ -223,7 +223,7 @@ end
* `V`: a dense n × p(k+1) matrix;
* `U`: a dense m × p(k+1) matrix;
* `Ψ`: a dense p × p upper triangular matrix;
* `Ψ`: a dense p × p upper triangular matrix such that U₁Ψ = B;
* `L`: a sparse p(k+1) × p(k+1) block lower bidiagonal matrix with a lower bandwidth p.
"""
function golub_kahan(A, B::AbstractMatrix{FC}, k::Int; algo::String="mgs") where FC <: FloatOrComplex
Expand Down Expand Up @@ -287,10 +287,10 @@ end
#### Output arguments
* `V`: a dense m × p(k+1) matrix;
* `Ψ`: a dense p × p upper triangular matrix;
* `Ψ`: a dense p × p upper triangular matrix such that V₁Ψ = B;
* `T`: a sparse p(k+1) × pk block tridiagonal matrix with a bandwidth p;
* `U`: a dense n × p(k+1) matrix;
* `Φᴴ`: a dense p × p upper triangular matrix;
* `Φᴴ`: a dense p × p upper triangular matrix such that U₁Φᴴ = C;
* `Tᴴ`: a sparse p(k+1) × pk block tridiagonal matrix with a bandwidth p.
"""
function saunders_simon_yip(A, B::AbstractMatrix{FC}, C::AbstractMatrix{FC}, k::Int; algo::String="mgs") where FC <: FloatOrComplex
Expand Down Expand Up @@ -375,10 +375,10 @@ end
#### Output arguments
* `V`: a dense m × p(k+1) matrix;
* `Γ`: a dense p × p upper triangular matrix;
* `Γ`: a dense p × p upper triangular matrix such that V₁Γ = D;
* `H`: a dense p(k+1) × pk block upper Hessenberg matrix with a lower bandwidth p;
* `U`: a dense n × p(k+1) matrix;
* `Λ`: a dense p × p upper triangular matrix;
* `Λ`: a dense p × p upper triangular matrix such that U₁Λ = C;
* `F`: a dense p(k+1) × pk block upper Hessenberg matrix with a lower bandwidth p.
"""
function montoison_orban(A, B, D::AbstractMatrix{FC}, C::AbstractMatrix{FC}, k::Int; algo::String="mgs", reorthogonalization::Bool=false) where FC <: FloatOrComplex
Expand Down

0 comments on commit 7c57e41

Please sign in to comment.