Skip to content

Commit 8bca56a

Browse files
committed
Replace Adjoint/Transpose with adjoint/transpose in IterativeEigensolvers.
1 parent e371faa commit 8bca56a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

stdlib/IterativeEigensolvers/src/IterativeEigensolvers.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Arnoldi and Lanczos iteration for computing eigenvalues
77
"""
88
module IterativeEigensolvers
99

10-
using Base.LinAlg: BlasFloat, BlasInt, SVD, checksquare, mul!, Adjoint, Transpose
10+
using Base.LinAlg: BlasFloat, BlasInt, SVD, checksquare, mul!
1111

1212
export eigs, svds
1313

@@ -208,7 +208,7 @@ end
208208
function Base.LinAlg.mul!(y::StridedVector{T}, A::SVDAugmented{T}, x::StridedVector{T}) where T
209209
m, mn = size(A.X, 1), length(x)
210210
mul!( view(y, 1:m), A.X, view(x, m + 1:mn)) # left singular vector
211-
mul!(view(y, m + 1:mn), Adjoint(A.X), view(x, 1:m)) # right singular vector
211+
mul!(view(y, m + 1:mn), adjoint(A.X), view(x, 1:m)) # right singular vector
212212
return y
213213
end
214214
Base.size(A::SVDAugmented) = ((+)(size(A.X)...), (+)(size(A.X)...))
@@ -228,9 +228,9 @@ end
228228
function Base.LinAlg.mul!(y::StridedVector{T}, A::AtA_or_AAt{T}, x::StridedVector{T}) where T
229229
if size(A.A, 1) >= size(A.A, 2)
230230
mul!(A.buffer, A.A, x)
231-
return mul!(y, Adjoint(A.A), A.buffer)
231+
return mul!(y, adjoint(A.A), A.buffer)
232232
else
233-
mul!(A.buffer, Adjoint(A.A), x)
233+
mul!(A.buffer, adjoint(A.A), x)
234234
return mul!(y, A.A, A.buffer)
235235
end
236236
end

stdlib/IterativeEigensolvers/test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ using Test
8888
@test_throws DimensionMismatch eigs(a, v0=zeros(elty,n+2))
8989
@test_throws ArgumentError eigs(a, v0=zeros(Int,n))
9090
if elty == Float64
91-
@test_throws ArgumentError eigs(a + copy(Transpose(a)), which=:SI)
92-
@test_throws ArgumentError eigs(a + copy(Transpose(a)), which=:LI)
91+
@test_throws ArgumentError eigs(a + copy(transpose(a)), which=:SI)
92+
@test_throws ArgumentError eigs(a + copy(transpose(a)), which=:LI)
9393
@test_throws ArgumentError eigs(a, sigma = rand(ComplexF32))
9494
end
9595
end

0 commit comments

Comments
 (0)