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

rlmesh::spaces::SpaceSpec

classExperimental#include <rlmesh.hpp>[source]

Immutable data describing a space.

class SpaceSpec

SpaceSpec

constructor[source]
SpaceSpec(const SpaceSpec& other)

Copy a borrowed spec (a contract’s, a space’s, a child’s).

SpaceSpec

constructor[source]
SpaceSpec(SpaceSpec&& other) noexcept

Copy a borrowed spec (a contract’s, a space’s, a child’s).

copy_of

static method[source]
static SpaceSpec copy_of(const RLMeshSpaceSpec* spec)

Copy a borrowed spec (a contract’s, a space’s, a child’s).

raw

method[source]
const RLMeshSpaceSpec* raw() const

kind

method[source]
SpaceKind kind() const

shape

method[source]
std::vector<int64_t> shape() const

dtype

method[source]
DType dtype() const

to_space

method[source]
inline Space to_space() const

A fresh space with its own sampler.

to_string

method[source]
std::string to_string() const

Gymnasium-style text.