set_default_complex_dtype#

ivy.set_default_complex_dtype(complex_dtype, /)[source]#

Set the ‘complex_dtype’ as the default data type.

Parameters:

complex_dtype (Union[Dtype, str]) – The complex data type to be set as the default.

Examples

With :class: ivy.Dtype input:

>>> ivy.set_default_complex_dtype(ivy.ComplexDtype("complex64"))
>>> ivy.default_complex_dtype()
'complex64'
>>> ivy.set_default_float_dtype(ivy.ComplexDtype("complex128"))
>>> ivy.default_complex_dtype()
'complex128'