From 5e504560218c1840bcb87f29365091ddbdcdeb90 Mon Sep 17 00:00:00 2001 From: Martin Holters Date: Wed, 8 Jun 2016 13:47:45 +0200 Subject: [PATCH] Fix docstring for speye(S) --- base/sparse/sparsematrix.jl | 2 +- doc/stdlib/arrays.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/base/sparse/sparsematrix.jl b/base/sparse/sparsematrix.jl index 80f40cbfed6e44..b87c2b6579054d 100644 --- a/base/sparse/sparsematrix.jl +++ b/base/sparse/sparsematrix.jl @@ -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) diff --git a/doc/stdlib/arrays.rst b/doc/stdlib/arrays.rst index e931fccf07134e..62c7b25e9630f3 100644 --- a/doc/stdlib/arrays.rst +++ b/doc/stdlib/arrays.rst @@ -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])