Skip to content

Commit b00c23d

Browse files
committed
Fix docstring for speye(S)
1 parent 6e73834 commit b00c23d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

base/sparse/sparsematrix.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ speye(m::Integer, n::Integer) = eye(SparseMatrixCSC, m, n)
992992
"""
993993
speye(S)
994994
995-
Create a sparse identity matrix with the same structure as that of `S`.
995+
Create a sparse identity matrix with the same size and element type as `S`.
996996
"""
997997
speye{T}(S::SparseMatrixCSC{T}) = eye(SparseMatrixCSC{T}, size(S, 1), size(S, 2))
998998
eye{T<:SparseMatrixCSC}(S::T) = eye(T, S)

doc/stdlib/arrays.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ dense counterparts. The following functions are specific to sparse arrays.
908908

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

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

0 commit comments

Comments
 (0)