File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff 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)]
112113spaced_out_sparsity = spaced_out_sparsity[.!isnan.(spaced_out_sparsity)]
113114spaced_out_sparsity = replace(spaced_out_sparsity, 0 => 1e-10)
114115matrix_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
You can’t perform that action at this time.
0 commit comments