Skip to content

Commit 3fafd15

Browse files
committed
Remove unused non-mutating iterable constructors
1 parent 5d9c83c commit 3fafd15

File tree

6 files changed

+1
-18
lines changed

6 files changed

+1
-18
lines changed

src/bicgstabl.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ mutable struct BiCGStabIterable{precT, matT, solT, vecT <: AbstractVector, small
2424
M::smallMatT
2525
end
2626

27-
bicgstabl_iterator(A, b, l; kwargs...) = bicgstabl_iterator!(zerox(A, b), A, b, l; initial_zero = true, kwargs...)
28-
2927
function bicgstabl_iterator!(x, A, b, l::Int = 2;
3028
Pl = Identity(),
3129
max_mv_products = size(A, 2),

src/cg.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Base: start, next, done
22

3-
export cg, cg!, CGIterable, PCGIterable, cg_iterator, cg_iterator!
3+
export cg, cg!, CGIterable, PCGIterable, cg_iterator!
44

55
mutable struct CGIterable{matT, solT, vecT, numT <: Real}
66
A::matT
@@ -92,8 +92,6 @@ end
9292

9393
# Utility functions
9494

95-
@inline cg_iterator(A, b, Pl = Identity(); kwargs...) = cg_iterator!(zerox(A, b), A, b, Pl; initially_zero = true, kwargs...)
96-
9795
function cg_iterator!(x, A, b, Pl = Identity();
9896
tol = sqrt(eps(real(eltype(b)))),
9997
maxiter::Int = size(A, 2),

src/chebyshev.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@ function next(cheb::ChebyshevIterable, iteration::Int)
5454
cheb.resnorm, iteration + 1
5555
end
5656

57-
chebyshev_iterable(A, b, λmin::Real, λmax::Real; kwargs...) =
58-
chebyshev_iterable!(zerox(A, b), A, b, λmin, λmax; kwargs...)
59-
6057
function chebyshev_iterable!(x, A, b, λmin::Real, λmax::Real;
6158
tol = sqrt(eps(real(eltype(b)))), maxiter = size(A, 2), Pl = Identity(), initially_zero = false)
6259

src/gmres.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ function next(g::GMRESIterable, iteration::Int)
9898
g.residual.current, iteration + 1
9999
end
100100

101-
gmres_iterable(A, b; kwargs...) = gmres_iterable!(zerox(A, b), A, b; initially_zero = true, kwargs...)
102-
103101
function gmres_iterable!(x, A, b;
104102
Pl = Identity(),
105103
Pr = Identity(),

src/minres.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ mutable struct MINRESIterable{matT, solT, vecT <: DenseVector, smallVecT <: Dens
3636
resnorm::realT
3737
end
3838

39-
minres_iterable(A, b; kwargs...) = minres_iterable!(zerox(A, b), A, b; initially_zero = true, kwargs...)
40-
4139
function minres_iterable!(x, A, b;
4240
initially_zero::Bool = false,
4341
skew_hermitian::Bool = false,

src/simple.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,6 @@ function powm_iterable!(A, x; tol = eps(real(eltype(A))) * size(A, 2) ^ 3, maxit
5454
PowerMethodIterable(A, x, tol, maxiter, zero(T), similar(x), similar(x), realmax(real(T)))
5555
end
5656

57-
function powm_iterable(A; kwargs...)
58-
x0 = rand(Complex{real(eltype(A))}, size(A, 1))
59-
scale!(x0, one(eltype(A)) / norm(x0))
60-
powm_iterable!(A, x0; kwargs...)
61-
end
62-
6357
"""
6458
powm(B; kwargs...) -> λ, x, [history]
6559

0 commit comments

Comments
 (0)