We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f32edf commit 34f5366Copy full SHA for 34f5366
stdlib/LinearAlgebra/src/LinearAlgebra.jl
@@ -9,7 +9,7 @@ module LinearAlgebra
9
10
import Base: \, /, *, ^, +, -, ==
11
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,
+ asin, asinh, atan, atanh, axes, big, broadcast, ceil, cis, conj, convert, copy, copyto!, cos,
13
cosh, cot, coth, csc, csch, eltype, exp, fill!, floor, getindex, hcat,
14
getproperty, imag, inv, isapprox, isequal, isone, iszero, IndexStyle, kron, kron!, length, log, map, ndims,
15
oneunit, parent, power_by_squaring, print_matrix, promote_rule, real, round, sec, sech,
stdlib/LinearAlgebra/src/dense.jl
@@ -576,8 +576,8 @@ julia> cis([π 0; 0 π]) ≈ -I
576
true
577
```
578
"""
579
-Base.cis(A::AbstractMatrix) = exp(im * A) # fallback
580
-Base.cis(A::AbstractMatrix{<:Base.HWNumber}) = exp_maybe_inplace(float.(im .* A))
+cis(A::AbstractMatrix) = exp(im * A) # fallback
+cis(A::AbstractMatrix{<:Base.HWNumber}) = exp_maybe_inplace(float.(im .* A))
581
582
exp_maybe_inplace(A::StridedMatrix{<:Union{ComplexF32, ComplexF64}}) = exp!(A)
583
exp_maybe_inplace(A) = exp(A)
0 commit comments