latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.functional.adjoint
- tensorplay.functional.adjoint(input: Tensor) Tensor[source]
Returns a view of the tensor conjugated and with the last two dimensions transposed.
x.adjoint()is equivalent tox.transpose(-2, -1).conj()for complex tensors and tox.transpose(-2, -1)for real tensors.- Parameters:
{input}
Example:
>>> x = tensorplay.arange(4, dtype=tensorplay.float) >>> A = tensorplay.complex(x, x).reshape(2, 2) >>> A tensor([[0.+0.j, 1.+1.j], [2.+2.j, 3.+3.j]]) >>> A.adjoint() tensor([[0.-0.j, 2.-2.j], [1.-1.j, 3.-3.j]]) >>> (A.adjoint() == A.mH).all() tensor(True)
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

