Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Zinoex/IMDP.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Zinoex committed Jan 5, 2024
2 parents 50ac21a + 2747b3e commit 8ba27e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
4 changes: 2 additions & 2 deletions benchmark/imdp/execute.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Revise, BenchmarkTools
using IMDP, CUDA

V_conv, _, u = interval_value_iteration(prob; maximize = true, upper_bound = false)
display(@benchmark interval_value_iteration(prob; maximize = true, upper_bound = false))
V_conv, _, u = value_iteration(prob)
display(@benchmark value_iteration(prob))
18 changes: 0 additions & 18 deletions src/interval_probabilities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -157,21 +157,3 @@ function interval_prob_hcat(

return IntervalProbabilities(l, g, sl), stateptr
end

function interval_prob_hcat(
T,
transition_probs::Vector{<:IntervalProbabilities{R, VR, MR}},
) where {R, VR, MR <: SparseArrays.AbstractSparseMatrixCSC{R}}
l = map(lower, transition_probs)
l = hcat(l...)

g = map(gap, transition_probs)
g = hcat(g...)

sl = mapreduce(sum_lower, vcat, transition_probs)

lengths = map(num_source, transition_probs)
stateptr = T[1; cumsum(lengths) .+ 1]

return IntervalProbabilities(l, g, sl), stateptr
end

0 comments on commit 8ba27e6

Please sign in to comment.