Skip to content

Commit e454386

Browse files
olof3LilithHafner
authored andcommitted
bugfix: properly import Base.cis into LinearAlgebra (JuliaLang#42164)
Certain methods, e.g., `cis(::Union{RealHermSymComplexHerm,SymTridiagonal{<:Real}})`, were not imported properly.
1 parent 7e23209 commit e454386

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

stdlib/LinearAlgebra/src/LinearAlgebra.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module LinearAlgebra
99

1010
import Base: \, /, *, ^, +, -, ==
1111
import Base: USE_BLAS64, abs, acos, acosh, acot, acoth, acsc, acsch, adjoint, asec, asech,
12-
asin, asinh, atan, atanh, axes, big, broadcast, ceil, conj, convert, copy, copyto!, cos,
12+
asin, asinh, atan, atanh, axes, big, broadcast, ceil, cis, conj, convert, copy, copyto!, cos,
1313
cosh, cot, coth, csc, csch, eltype, exp, fill!, floor, getindex, hcat,
1414
getproperty, imag, inv, isapprox, isequal, isone, iszero, IndexStyle, kron, kron!, length, log, map, ndims,
1515
oneunit, parent, power_by_squaring, print_matrix, promote_rule, real, round, sec, sech,

stdlib/LinearAlgebra/src/dense.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,8 +576,8 @@ julia> cis([π 0; 0 π]) ≈ -I
576576
true
577577
```
578578
"""
579-
Base.cis(A::AbstractMatrix) = exp(im * A) # fallback
580-
Base.cis(A::AbstractMatrix{<:Base.HWNumber}) = exp_maybe_inplace(float.(im .* A))
579+
cis(A::AbstractMatrix) = exp(im * A) # fallback
580+
cis(A::AbstractMatrix{<:Base.HWNumber}) = exp_maybe_inplace(float.(im .* A))
581581

582582
exp_maybe_inplace(A::StridedMatrix{<:Union{ComplexF32, ComplexF64}}) = exp!(A)
583583
exp_maybe_inplace(A) = exp(A)

0 commit comments

Comments
 (0)