rlmesh::spaces::SpaceSpec
Immutable data describing a space.
class SpaceSpecConstructors
Static methods
Methods
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) noexceptCopy 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() constkind
method[source]SpaceKind kind() constshape
method[source]std::vector<int64_t> shape() constdtype
method[source]DType dtype() constto_space
method[source]inline Space to_space() constA fresh space with its own sampler.
to_string
method[source]std::string to_string() constGymnasium-style text.