PyTorch torch.conj_physical Function
PyTorch torch Reference Manual
torch.conj_physicalIt is a function in PyTorch used to compute the physical conjugate element-wise.
Function Definition
torch.conj_physical(input, *, out=None)
Usage Example
Example
import torch
# Compute physical conjugate example
x = torch.tensor([1+2j, 3+4j, 5+6j])
result = torch.conj_physical(x)
print(result) # tensor([1-2j, 3-4j, 5-6j])
# Compute physical conjugate example
x = torch.tensor([1+2j, 3+4j, 5+6j])
result = torch.conj_physical(x)
print(result) # tensor([1-2j, 3-4j, 5-6j])
Other Extensions