PyTorch torch.conj_physical 関数

PyTorch torch.conj_physical 関数


Pytorch torch 参考手册Pytorch torch リファレンスマニュアル

torch.conj_physicalは、PyTorch で要素ごとに物理共役を計算する関数です。

関数定義

torch.conj_physical(input, *, out=None)

使用例

例

import torch

# 物理共役の計算例
x = torch.tensor([1+2j, 3+4j, 5+6j])
result = torch.conj_physical(x)
print(result)  # tensor([1-2j, 3-4j, 5-6j])

Pytorch torch 参考手册Pytorch torch リファレンスマニュアル

その他の拡張機能