We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e38b0a5 commit 21abe09Copy full SHA for 21abe09
1 file changed
src/uncertainty_interface.jl
@@ -582,7 +582,7 @@ function blocksort(P::UncertainSS)
582
end
583
584
function getinds(blocks::Vector{Vector{Int}}, d::Int)
585
- lengths = [b[2] <= 1 ? 1 : b[d] for b in blocks]
+ lengths = [b[2] <= 1 ? b[1] : b[d] for b in blocks]
586
endinds = cumsum(lengths)
587
startinds = [1; endinds[1:end-1] .+ 1]
588
inds = UnitRange.(0 .+ startinds, lengths .+ startinds .- 1)
0 commit comments