# COO.conj¶

COO.conj()

Return the complex conjugate, element-wise.

The complex conjugate of a complex number is obtained by changing the sign of its imaginary part.

Examples

>>> from sparse import COO
>>> x = COO.from_numpy([1 + 2j, 2 - 1j])
>>> res = x.conj()
>>> res.todense()
array([1.-2.j, 2.+1.j])
>>> res.dtype
dtype('complex128')

Returns

out – The complex conjugate, with same dtype as the input.

Return type

SparseArray

numpy.ndarray.conj
numpy.conj