View source: R/gen-namespace.R
torch_real | R Documentation |
Real
torch_real(self)
self |
(Tensor) the input tensor. |
Returns the real part of the input
tensor. If
input
is a real (non-complex) tensor, this function just
returns it.
Not yet implemented for complex tensors.
\mbox{out}_{i} = real(\mbox{input}_{i})
if (torch_is_installed()) {
## Not run:
torch_real(torch_tensor(c(-1 + 1i, -2 + 2i, 3 - 3i)))
## End(Not run)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.