Skip to content

Commit 9d9c2e3

Browse files
testing with a smaller subset
1 parent bf39232 commit 9d9c2e3

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

benchmarks/LinearSolve/MatrixDepot.jmd

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ matrix_size = fill(NaN, length(allmatrices_md.content[1].rows))
3737
```
3838

3939
```julia
40-
for z in 1:length(allmatrices_md.content[1].rows)
40+
# for z in 1:length(allmatrices_md.content[1].rows)
41+
for z in 1:200
4142
try
4243
matrix = allmatrices_md.content[1].rows[z]
4344
matrix = string(matrix[1])
@@ -54,7 +55,7 @@ for z in 1:length(allmatrices_md.content[1].rows)
5455

5556
@info "$n × $n"
5657
n > 100 && error("Skipping too large matrices")
57-
matrix_size[z] = n
58+
5859

5960
rows, cols = size(mtx_copy)
6061
new_rows = div(rows, 2)
@@ -79,12 +80,6 @@ for z in 1:length(allmatrices_md.content[1].rows)
7980

8081
end
8182

82-
83-
percentage_sparsity[z] = length(nonzeros(A)) / n^2
84-
85-
spaced_out_sparsity[z] = length(nonzeros(mtx_copy)) * percentage_sparsity[z]
86-
87-
8883
b = rand(rng, n)
8984
u0 = rand(rng, n)
9085

@@ -96,7 +91,9 @@ for z in 1:length(allmatrices_md.content[1].rows)
9691
alias_b = true))
9792
times[z,j] = bt
9893
end
99-
94+
matrix_size[z] = n
95+
percentage_sparsity[z] = length(nonzeros(A)) / n^2
96+
spaced_out_sparsity[z] = length(nonzeros(mtx_copy)) * percentage_sparsity[z]
10097
println("successfully factorized $(currMTX)")
10198
catch e
10299
matrix = allmatrices_md.content[1].rows[z]

0 commit comments

Comments
 (0)