Skip to content

Commit 3935364

Browse files
committed
export new functions
1 parent 7959946 commit 3935364

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/SparseArraysBase.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export SparseArrayDOK,
1212
storedlength,
1313
storedpairs,
1414
storedvalues
15+
export spzeros, sprand, sprand!
1516

1617
include("abstractsparsearrayinterface.jl")
1718
include("sparsearrayinterface.jl")

test/test_linalg.jl

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,6 @@ using StableRNGs: StableRNG
55

66
const rng = StableRNG(123)
77

8-
# TODO: add this to main package
9-
function sprand(rng::Random.AbstractRNG, ::Type{T}, sz::Base.Dims; p::Real=0.5) where {T}
10-
A = SparseArrayDOK{T}(undef, sz)
11-
for I in eachindex(A)
12-
if rand(rng) < p
13-
A[I] = rand(rng, T)
14-
end
15-
end
16-
return A
17-
end
18-
198
@testset "mul!" begin
209
T = Float64
2110
szA = (2, 2)

0 commit comments

Comments
 (0)