Skip to content

Commit bf39232

Browse files
fixing graphs
1 parent 4892d14 commit bf39232

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

benchmarks/LinearSolve/MatrixDepot.jmd

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,13 @@ for z in 1:length(allmatrices_md.content[1].rows)
4848
A = mdopen(currMTX).A
4949
A = convert(SparseMatrixCSC, A)
5050
n = size(A, 1)
51-
matrix_size[z] = n
51+
5252

5353
mtx_copy = copy(A)
5454

5555
@info "$n × $n"
5656
n > 100 && error("Skipping too large matrices")
57+
matrix_size[z] = n
5758

5859
rows, cols = size(mtx_copy)
5960
new_rows = div(rows, 2)
@@ -112,13 +113,8 @@ percentage_sparsity = percentage_sparsity[.!isnan.(percentage_sparsity)]
112113
spaced_out_sparsity = spaced_out_sparsity[.!isnan.(spaced_out_sparsity)]
113114
spaced_out_sparsity = replace(spaced_out_sparsity, 0 => 1e-10)
114115
matrix_size = matrix_size[.!isnan.(matrix_size)]
115-
new_times = []
116-
for row in eachrow(times)
117-
if !any(isnan, row) # Check if the row does not contain NaN values
118-
push!(new_times, row) # Append the row to the list
119-
end
120-
end
121-
times = new_times
116+
nanrows = any(isnan, times; dims=2)
117+
times = times[.!vec(nanrows), :]
122118
```
123119

124120
```julia

0 commit comments

Comments
 (0)