JuliaPOMDP / JuliaPOMDP/TagPOMDPProblem.jl

State space is not fully aligned with Julia iteration interface

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Description

The function `state_from_index` is implemented in `states.jl`. However, if we are following the conventions of the Julia iteration interface, we should extend `Base.getindex`.

Recommended functions to implement:

- [ ] `Base.getindex(pomdp::TagPOMDP, si::Int)` to replace `state_from_index`
- [ ] `Base.getindex(pomdp::TagPOMDP, si_range::UnitRange{Int})`
- [ ] `Base.firstidex(pomdp::TagPOMDP)`
- [ ] `Base.lastindex(pomdp::TagPOMDP)`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.