default_dtype

odl.core.space.base_tensors.default_dtype(array_backend: ArrayBackend | str, field=None)[source]

Return the default data type for a given field.

Parameters

array_backendArrayBackend or str

The implementation, defining what dtypes are available. If a string is given, it is interpreted as an impl identifier of an array backend from the global registry.

fieldField, optional

Set of numbers to be represented by a data type. Currently supported : RealNumbers, ComplexNumbers The default None means RealNumbers

Returns

dtype :

Backend data type specifier.