This reference describes unreleased code on main; no release documents it yet.

rlmesh::spaces::Box

classExperimental#include <rlmesh.hpp>[source]

A box of numbers in [low, high].

class Box : public Space

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() const

high

method[source]
std::optional<BoxBound> high() const

bounds_kind

method[source]
std::optional<BoundsKind> bounds_kind() const