auto_cast# mrinufft._array_compat.auto_cast(array, dtype)[source]# Cast an array or a tensor to the desired dtype. This automatically convert numpy/torch dtype to suitable format. Parameters: dtype (dtype[Any] | None | type[Any] | _SupportsDType[dtype[Any]] | str | tuple[Any, int] | tuple[Any, SupportsIndex | Sequence[SupportsIndex]] | list[Any] | _DTypeDict | tuple[Any, Any])