Skip to content

Commit

Permalink
Fix docstring for speye(S)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholters committed Jun 8, 2016
1 parent 4ee196f commit 848234f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base/sparse/sparsematrix.jl
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ speye(m::Integer, n::Integer) = eye(SparseMatrixCSC, m, n)
"""
speye(S)
Create a sparse identity matrix with the same structure as that of `S`.
Create a sparse identity matrix with the same size and element type as `S`.
"""
speye{T}(S::SparseMatrixCSC{T}) = eye(SparseMatrixCSC{T}, size(S, 1), size(S, 2))
eye{T<:SparseMatrixCSC}(S::T) = eye(T, S)
Expand Down
2 changes: 1 addition & 1 deletion doc/stdlib/arrays.rst
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ dense counterparts. The following functions are specific to sparse arrays.

.. Docstring generated from Julia source
Create a sparse identity matrix with the same structure as that of ``S``\ .
Create a sparse identity matrix with the same size and element type as ``S``\ .

.. function:: spdiagm(B, d[, m, n])

Expand Down

0 comments on commit 848234f

Please sign in to comment.