Learn R Programming

torch (version 0.1.0)

torch_conj: Conj

Description

Conj

Usage

torch_conj(self)

Arguments

self

(Tensor) the input tensor.

conj(input) -> Tensor

Computes the element-wise conjugate of the given input tensor.

$$ \mbox{out}_{i} = conj(\mbox{input}_{i}) $$

Examples

Run this code
# NOT RUN {
if (torch_is_installed()) {
# }
# NOT RUN {
torch_conj(torch_tensor(c(-1 + 1i, -2 + 2i, 3 - 3i)))
# }
# NOT RUN {
}
# }

Run the code above in your browser using DataLab