COO.imag
- COO.imag
The imaginary part of the array.
Examples
>>> from sparse import COO >>> x = COO.from_numpy([1 + 0j, 0 + 1j]) >>> x.imag.todense() 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:
See also
numpy.ndarray.imagNumPy equivalent attribute.
numpy.imagNumPy equivalent function.