typing.array
array(dtype: object, ndims: int, ndims_max: int | None = None) -> objectType for arrays with specified number of dimensions.
Args
- dtype: Scalar type for the array elements.
- ndims: Number of dimensions for the array.
- ndims_max: If set, maximal number of dimensions for the array. Any dimensions between
ndimsandndims_max(inclusive) are valid.
Returns
Array type.