Symbolic element-wise complex imaginery part operation for
ComplexLazyTensor
objects.
Arguments
- z
A
ComplexLazyTensor
or any type of values accepted by R defaultbase::Im()
function.
Details
If z
is a ComplexLazyTensor
, Im(z)
returns a
ComplexLazyTensor
that encodes, symbolically, the element-wise imaginary
part of complex z
.
Note: Im(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
Im_z <- Im(z_i) # symbolic matrix
}