R2matrix {conformal} | R Documentation |
Convert objects to matrix or list representation of a complex vector
R2matrix(x) C2matrix(x) R2listxy(z) C2listxy(z)
z,x |
A complex vector or real representation of one |
For R2matrix
or R2matrix
, a matrix having two columns representing the real and imaginary parts of the complex vector.
For R2listxy
or C2listxy
, a list having two components representing the real and imaginary parts of the complex vector.
Nick Ellis, nick.ellis@csiro.au
re <- 1:10 im <- 10:1 z <- complex(real=re,imag=im) x <- C2R(z) mat1 <- C2matrix(z) mat2 <- R2matrix(x) lis1 <- C2listxy(z) lis2 <- R2listxy(x) all.equal(mat1,mat2) all.equal(lis1,lis2)