Skip to content

Commit c2750a7

Browse files
committed
copyto! -> copy!
1 parent 234d492 commit c2750a7

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/implementations/exponential.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ function exponential!(A::AbstractMatrix, expA, alg::MatrixFunctionViaTaylor)
140140
iszero(d[1]) && return one!(expA)
141141

142142
powers = Vector{Base.promote_op(similar, typeof(A))}(undef, p₀)
143-
powers[1] = eltype(powers) === typeof(A) ? A : copyto!(similar(A), A)
143+
powers[1] = eltype(powers) === typeof(A) ? A : copy!(similar(A), A)
144144

145145
for p in 2:p₀
146146
powers[p] = similar(powers[1])
@@ -179,7 +179,7 @@ function exponential!(A::AbstractMatrix, expA, alg::MatrixFunctionViaTaylor)
179179
if dobalance
180180
expA .= scale .* X ./ transpose(scale)
181181
else
182-
X === expA || copyto!(expA, X)
182+
X === expA || copy!(expA, X)
183183
end
184184
return expA
185185
end

src/implementations/logarithm.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ end
5151
function logarithm!(A::AbstractMatrix, logA, alg::DiagonalAlgorithm)
5252
check_input(logarithm!, A, logA, alg)
5353
λ = diagview(logA)
54-
copyto!(λ, diagview(A))
54+
copy!(λ, diagview(A))
5555
atol = something(get(alg.kwargs, :domain_atol, nothing), default_domain_atol(λ))
5656
_check_nonzero_eigenvalues(λ, atol)
5757
if eltype(λ) <: Real

src/implementations/power.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function power!(A::AbstractMatrix, p::Real, powA, alg::DiagonalAlgorithm)
6868
iszero(p) && return one!(powA)
6969
isone(p) && ((powA === A || copy!(powA, A)); return powA)
7070
λ = diagview(powA)
71-
copyto!(λ, diagview(A))
71+
copy!(λ, diagview(A))
7272
if isinteger(p)
7373
p < 0 && any(iszero, λ) && throw(LinearAlgebra.SingularException(0))
7474
else

src/implementations/squareroot.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ end
5252
function squareroot!(A::AbstractMatrix, sqrtA, alg::DiagonalAlgorithm)
5353
check_input(squareroot!, A, sqrtA, alg)
5454
λ = diagview(sqrtA)
55-
copyto!(λ, diagview(A))
55+
copy!(λ, diagview(A))
5656
if eltype(λ) <: Real
5757
atol = something(get(alg.kwargs, :domain_atol, nothing), default_domain_atol(λ))
5858
_clamp_domain_eigenvalues!(λ, atol)

0 commit comments

Comments
 (0)