COO.imag¶
-
COO.
imag
¶ The imaginary part of the array.
Examples
>>> x = COO.from_numpy([1 + 0j, 0 + 1j]) >>> x.imag.todense() # doctest: +SKIP array([0., 1.]) >>> x.imag.dtype dtype('float64')
Returns: out – The imaginary component of the array elements. If the array dtype is real, the dtype of the array is used for the output. If the array is complex, the output dtype is float. Return type: COO See also
numpy.ndarray.imag
- NumPy equivalent attribute.
numpy.imag
- NumPy equivalent function.