# tf.linalg.adjoint

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.13.1/tensorflow/python/ops/linalg/linalg_impl.py#L102-L128) |

Transposes the last two dimensions of and conjugates tensor `matrix`.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.linalg.adjoint`](https://www.tensorflow.org/api_docs/python/tf/linalg/adjoint)

<br />

    tf.linalg.adjoint(
        matrix, name=None
    )

#### For example:

    x = tf.constant([[1 + 1j, 2 + 2j, 3 + 3j],
                     [4 + 4j, 5 + 5j, 6 + 6j]])
    tf.linalg.adjoint(x)  # [[1 - 1j, 4 - 4j],
                          #  [2 - 2j, 5 - 5j],
                          #  [3 - 3j, 6 - 6j]]

<br />

<br />

<br />

| ## Args ||
|---|---|
| `matrix` | A `Tensor`. Must be `float16`, `float32`, `float64`, `complex64`, or `complex128` with shape `[..., M, M]`. |
| `name` | A name to give this `Op` (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| The adjoint (a.k.a. Hermitian transpose a.k.a. conjugate transpose) of matrix. ||

<br />