Symbolic element-wise complex real part operation for ComplexLazyTensor
objects or default R element-wise complex real part operation otherwise.
Arguments
- z
input for
Re.default()orRe.LazyTensor().
Value
See value of Re.default() or Re.LazyTensor().
Details
If z is a ComplexLazyTensor, see
Re.LazyTensor(), else see Re.default().
Examples
if (FALSE) {
# R base operation
Re(1)
Re(1+1i)
# LazyTensor symbolic element-wise complex real part
z <- matrix(2 + 1i^ (-6:5), nrow = 4) # complex matrix
z_i <- LazyTensor(z, "i", is_complex = TRUE) # creating ComplexLazyTensor
Re_z <- Re(z_i) # symbolic matrix
}