R2matrix: Real/complex manipulation

Description Usage Arguments Value Author(s) See Also Examples

Description

Convert objects to matrix or list representation of a complex vector

Usage

1
2
3
4

Arguments

z,x

A complex vector or real representation of one

Value

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.

Author(s)

Nick Ellis, nick.ellis@csiro.au

See Also

C2R, listxy2R, matrix2R

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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)

conformal documentation built on May 2, 2019, 5:47 p.m.