Skip to content

Commit

Permalink
rename arg and update version compat
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Jan 17, 2019
1 parent c4e4308 commit 11d006a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions stdlib/LinearAlgebra/src/uniformscaling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ julia> [1 2im 3; 1im 2 3] * I
const I = UniformScaling(true)

"""
(J::UniformScaling)(n::Integer)
(I::UniformScaling)(n::Integer)
Construct a `Diagonal` matrix from a `UniformScaling`.
!!! compat "Julia 1.1"
This method is available as of Julia 1.1.
!!! compat "Julia 1.2"
This method is available as of Julia 1.2.
# Examples
```jldoctest
Expand All @@ -71,7 +71,7 @@ julia> (0.7*I)(3)
⋅ ⋅ 0.7
```
"""
(J::UniformScaling)(n::Integer) = Diagonal(fill(J.λ, n))
(I::UniformScaling)(n::Integer) = Diagonal(fill(I.λ, n))

eltype(::Type{UniformScaling{T}}) where {T} = T
ndims(J::UniformScaling) = 2
Expand Down

0 comments on commit 11d006a

Please sign in to comment.