rlmesh::spaces::Box
A box of numbers in [low, high].
class Box : public SpaceConstructors
Static methods
Methods
Box
constructor[source]Box(
Bound low,
Bound high,
const std::vector<int64_t>& shape,
BoxOptions options = {}
)Throwing forms of create / from_spec.
Box
constructor[source]explicit Box(const SpaceSpec& spec)Throwing forms of create / from_spec.
create
static method[source]static Box create(
Bound low,
Bound high,
const std::vector<int64_t>& shape,
BoxOptions options = {}
)Box(low, high, shape, dtype).
from_spec
static method[source]static Box from_spec(const SpaceSpec& spec)Box(spec): another kind is a ValueError.
low
method[source]std::optional<BoxBound> low() consthigh
method[source]std::optional<BoxBound> high() constbounds_kind
method[source]std::optional<BoundsKind> bounds_kind() const