Symbolic element-wise complex real part operation for ComplexLazyTensor
objects.
Arguments
- z
A
ComplexLazyTensor
or any type of values accepted by R defaultbase::Re()
function.
Details
If z
is a ComplexLazyTensor
, Re(z)
returns a
ComplexLazyTensor
that encodes, symbolically, the element-wise real part
of complex z
.
Note: Re(z)
will exit with an error if z
is a LazyTensor
but not
a ComplexLazyTensor
.
Examples
if (FALSE) {
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
}