space_utils

Utility functions for space implementations.

Functions

cn(shape[, dtype, impl])

Return a space of complex tensors.

rn(shape[, dtype, impl])

Return a space of real tensors.

tensor_space(shape[, dtype, impl])

Return a tensor space with arbitrary scalar data type.

vector(array[, dtype, order, impl])

Create a vector from an array-like object.