Skip to content

Commit

Permalink
slight efficiency improvement of AllOrderStatistics
Browse files Browse the repository at this point in the history
  • Loading branch information
salbalkus committed Aug 7, 2024
1 parent 713ddea commit 334aca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network_summary.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ summarize(o::NamedTuple, x::AllOrderStatistics) = order_statistic_matrix(o[x.tar

function order_statistic_matrix(X::AbstractArray, G::SparseMatrixCSC)
n = length(X)
max_k = Int(maximum(G * ones(n)))
max_k = Int(maximum(sum(G, dims = 2)))
Xvec = map(x -> Missings.missings(Float64, max_k), 1:n)
r = rowvals(G)

Expand Down

0 comments on commit 334aca1

Please sign in to comment.