Handbook
Glossary
complex-components
Complex component virtual sequences
Next:
<complex-components> ( sequence -- complex-components )
Vocabulary
sequences
.
complex-components
Class description
Sequence wrapper class that transforms a sequence of
complex
number values into a sequence of
real
values, interleaving the real and imaginary parts of the complex values in the original sequence.
Examples
USING: prettyprint sequences arrays sequences.complex-components ; { C{ 1.0 -1.0 } -2.0 C{ 3.0 1.0 } } <complex-components> >array .
{ 1.0 -1.0 -2.0 0 3.0 1.0 }
See also
<complex-components>
Definition
IN:
sequences.complex-components
TUPLE:
complex-components
seq
;
Methods
USING:
accessors
math
sequences
sequences.complex-components
;
M:
complex-components
length
seq>>
length
1
shift
;
USING:
sequences.complex-components
sequences.complex-components.private
sequences.private
;
M:
complex-components
nth-unsafe
complex-components@
nth-unsafe
complex-component
;
USING:
sequences
sequences.complex-components
sequences.private
;
M:
complex-components
set-nth-unsafe
immutable
;