Skip to content

Commit c47ef44

Browse files
committed
update docstrings
1 parent a0f8445 commit c47ef44

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/abstractsparsearrayinterface.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ end
3737
spzeros([T::Type], dims) -> A::SparseArrayDOK{T}
3838
3939
Create an empty size `dims` sparse array.
40-
The optional `T` argument specifies the element type, which defualts to `Float64`.
40+
The optional `T` argument specifies the element type, which defaults to `Float64`.
4141
""" spzeros
4242

4343
spzeros(dims::Dims) = spzeros(Float64, dims)
@@ -49,6 +49,7 @@ spzeros(::Type{T}, dims::Dims) where {T} = SparseArrayDOK{T}(undef, dims)
4949
Create a random size `dims` sparse array in which the probability of any element being stored is independently given by `density`.
5050
The optional `rng` argument specifies a random number generator, see also `Random`.
5151
The optional `T` argument specifies the element type, which defaults to `Float64`.
52+
The optional `rfn` argument can be used to control the type of random elements.
5253
5354
See also [`sprand!`](@ref).
5455
""" sprand
@@ -71,6 +72,7 @@ end
7172
7273
Overwrite part of an array with random entries, where the probability of overwriting is independently given by `density`.
7374
The optional `rng` argument specifies a random number generator, see also `Random`.
75+
The optional `rfn` argument can be used to control the type of random elements.
7476
7577
See also [`sprand`](@ref).
7678
""" sprand!

0 commit comments

Comments
 (0)