Skip to content

complex

builtin · libnexusinterp/corefcn/data-proprietary.cc

: z = complex (re, im)
: z = complex (x)

Build a complex array from real and imaginary parts. The result is complex-typed even when every imaginary part is zero. With one argument a real array becomes complex with zero imaginary part and a complex array is returned unchanged.