Skip to content

Commit

Permalink
add eachindex for solutions
Browse files Browse the repository at this point in the history
  • Loading branch information
mforets committed Aug 31, 2020
1 parent d10e0b7 commit 738a8e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Flowpipes/solutions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ Base.getindex(sol::ReachSolution, I::AbstractVector) = getindex(sol.F, I)

# indexing: fp[j, i] returning the j-th reach-set of the i-th flowpipe
Base.getindex(sol::ReachSolution, I::Int...) = getindex(sol.F, I...)
Base.eachindex(sol::ReachSolution) = eachindex(sol.F)

# evaluation interface
Base.getindex(sol::ReachSolution, t::Float64) = getindex(sol.F, t)
Expand Down

0 comments on commit 738a8e5

Please sign in to comment.