Skip to content

Commit

Permalink
fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed Oct 15, 2017
1 parent 89b4d68 commit 71fe871
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ Library improvements

* REPL Undo via Ctrl-/ and Ctrl-_

* `diagm` now accepts several diagonal index/vector pairs ([#24047]).
* `diagm` now accepts several diagonal index/vector `Pair`s ([#24047]).

* New function `equalto(x)`, which returns a function that compares its argument to `x`
using `isequal` ([#23812]).
Expand Down
5 changes: 4 additions & 1 deletion base/linalg/dense.jl
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,11 @@ diag(A::AbstractMatrix, k::Integer=0) = A[diagind(A,k)]
Construct a square matrix from `Pair`s of diagonals and vectors.
Vector `kv.second` will be placed on the `kv.first` diagonal.
`diagm` constructs a full matrix; if you want storage-efficient
versions with fast arithmetic, see [`Diagonal`](@ref), [`Bidiagonal`](@ref)
[`Tridiagonal`](@ref) and [`SymTridiagonal`](@ref).
See also: [`spdiagm`](@ref), [`Diagonal`](@ref)
See also: [`spdiagm`](@ref)
# Examples
```jldoctest
Expand Down
2 changes: 1 addition & 1 deletion base/linalg/generic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ of the [`eltype`](@ref) of `A`.
julia> rank(eye(3))
3
julia> rank(0 => diagm([1, 0, 2]))
julia> rank(diagm(0 => [1, 0, 2]))
2
julia> rank(diagm(0 => [1, 0.001, 2]), 0.1)
Expand Down

0 comments on commit 71fe871

Please sign in to comment.