C2R: Real/complex manipulation

Description Usage Arguments Value Author(s) See Also Examples

Description

Convert objects to a real vector representation of a complex vector

Usage

1
2
3
C2R(z)
listxy2R(lxy)
matrix2R(x)

Arguments

z

A complex vector

lxy

A list having two components representing real and imaginary parts

x

A matrix having two columns representing real and imaginary parts

Value

A real vector whose odd elements are the real part and whose even elements are the imaginary part of the complex vector

Author(s)

Nick Ellis, nick.ellis@csiro.au

See Also

R2C, listxy2C, matrix2C

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
re <- 1:10
im <- 10:1
z <- complex(real=re,imag=im)
lis <- list(re,im)
mat <- cbind(re,im)
x1 <- C2R(z)
x2 <- listxy2R(lis)
x3 <- matrix2R(mat)
all(x1==x2)
all(x1==x3)

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

Related to C2R in conformal...