oa::EnvironmentSpace

EnvironmentSpace struct in the OA Ml public surface.

Public Methods

oa::Result<oa::MatrixShape> oa::EnvironmentSpace::batchedShape(oa::U32 inEnvironments)
oa::I64 oa::EnvironmentSpace::elementsPerEnvironment()
oa::Status oa::EnvironmentSpace::validateDefinition()
oa::Status oa::EnvironmentSpace::validateMatrix(const oa::Matrix & inMatrix, oa::U32 inEnvironments)

Static Public Methods

static EnvironmentSpace oa::EnvironmentSpace::binary(oa::StringView inName, oa::MatrixShape inShape = = {}, oa::ScalarType inDtype = oa::ScalarType::UInt8)
static EnvironmentSpace oa::EnvironmentSpace::box(oa::StringView inName, oa::MatrixShape inShape, oa::ScalarType inDtype = oa::ScalarType::Float32, oa::F64 inMinimum = -oa::Limits<oa::F64>::infinity(), oa::F64 inMaximum = oa::Limits<oa::F64>::infinity())
static EnvironmentSpace oa::EnvironmentSpace::discrete(oa::StringView inName, oa::I64 inCardinality, oa::ScalarType inDtype = oa::ScalarType::Int32)

Public Data Members

cardinalityoa::I64field
dtypeScalarTypefield
kindEnvironmentSpaceKindfield
maximumoa::F64field
minimumoa::F64field
nameStringfield
shapeMatrixShapefield

Public Method Documentation

oa::Result<oa::MatrixShape> oa::EnvironmentSpace::batchedShape( oa::U32 inEnvironments )
No public source comment is attached to this declaration.

Parameters

inEnvironments
oa::U32

Returns

oa::Result<oa::MatrixShape>

The declared return value.

oa::I64 oa::EnvironmentSpace::elementsPerEnvironment()
No public source comment is attached to this declaration.

Returns

oa::I64

The declared return value.

oa::Status oa::EnvironmentSpace::validateDefinition()
No public source comment is attached to this declaration.

Returns

oa::Status

The declared return value.

oa::Status oa::EnvironmentSpace::validateMatrix( const oa::Matrix & inMatrix, oa::U32 inEnvironments )
No public source comment is attached to this declaration.

Parameters

inMatrix
const oa::Matrix &

inEnvironments
oa::U32

Returns

oa::Status

The declared return value.

static EnvironmentSpace oa::EnvironmentSpace::binary( oa::StringView inName, oa::MatrixShape inShape = = {}, oa::ScalarType inDtype = oa::ScalarType::UInt8 )
No public source comment is attached to this declaration.

Parameters

inName
oa::StringView

inShape
oa::MatrixShape

Default: = {}

inDtype
oa::ScalarType

Default: oa::ScalarType::UInt8

Returns

EnvironmentSpace

The declared return value.

static EnvironmentSpace oa::EnvironmentSpace::box( oa::StringView inName, oa::MatrixShape inShape, oa::ScalarType inDtype = oa::ScalarType::Float32, oa::F64 inMinimum = -oa::Limits<oa::F64>::infinity(), oa::F64 inMaximum = oa::Limits<oa::F64>::infinity() )
No public source comment is attached to this declaration.

Parameters

inName
oa::StringView

inShape
oa::MatrixShape

inDtype
oa::ScalarType

Default: oa::ScalarType::Float32

inMinimum
oa::F64

Default: -oa::Limits<oa::F64>::infinity()

inMaximum
oa::F64

Default: oa::Limits<oa::F64>::infinity()

Returns

EnvironmentSpace

The declared return value.

static EnvironmentSpace oa::EnvironmentSpace::discrete( oa::StringView inName, oa::I64 inCardinality, oa::ScalarType inDtype = oa::ScalarType::Int32 )
No public source comment is attached to this declaration.

Parameters

inName
oa::StringView

inCardinality
oa::I64

inDtype
oa::ScalarType

Default: oa::ScalarType::Int32

Returns

EnvironmentSpace

The declared return value.