adjoint#

ivy.adjoint(x, /, *, out=None)[source]#

Compute the complex conjugate transpose of x.

Parameters:
  • x (Union[Array, NativeArray]) – An array with more than one dimension.

  • out (Optional[Array], default: None) – optional output array, for writing the result to. It must have a shape that the inputs broadcast to.

Return type:

Array

Returns:

ret – the complex conjugate transpose of the input.

Examples

>>> x = np.array([[1.-1.j, 2.+2.j],
                  [3.+3.j, 4.-4.j]])
>>> x = ivy.array(x)
>>> ivy.adjoint(x)
ivy.array([[1.+1.j, 3.-3.j],
           [2.-2.j, 4.+4.j]])
Array.adjoint(self, /, *, out=None)[source]#

ivy.Array instance method variant of ivy.adjoint. This method simply wraps the function, and so the docstring for ivy.adjoint also applies to this method with minimal changes.

Return type:

Array

Examples

>>> x = np.array([[1.-1.j, 2.+2.j],
                  [3.+3.j, 4.-4.j]])
>>> x = ivy.array(x)
>>> x.adjoint()
ivy.array([[1.+1.j, 3.-3.j],
           [2.-2.j, 4.+4.j]])
Container.adjoint(self, /, *, key_chains=None, to_apply=True, out=None)[source]#

ivy.Container instance method variant of ivy.adjoint. This method simply wraps the function, and so the docstring for ivy.adjoint also applies to this method with minimal changes.

Examples

>>> x = np.array([[1.-1.j, 2.+2.j],
                  [3.+3.j, 4.-4.j]])
>>> c = ivy.Container(a=ivy.array(x))
>>> c.adjoint()
{
    a: ivy.array([[1.+1.j, 3.-3.j],
                  [2.-2.j, 4.+4.j]])
}