TensorSpace.astype¶
- TensorSpace.astype(dtype)[source]¶
Return a copy of this space with new
dtype
.- Parameters:
- dtype
Scalar data type of the returned space. Can be provided in any way the
numpy.dtype
constructor understands, e.g. as built-in type or as a string. Data types with non-trivial shapes are not allowed.
- Returns:
- newspace
TensorSpace
Version of this space with given data type.
- newspace