complex-float - Factor Documentation

complex-float


Vocabulary
alien .complex

Word description
This C type represents a single-precision IEEE 754 floating-point complex type. Input values will be converted from Factor complex objects into a single-precision complex float type; output values will be returned as Factor complex objects.

Definition
USING: alien.c-types classes.struct ;

IN: alien.complex

STRUCT: complex-float
{ real float initial: 0.0 } { imaginary float initial: 0.0 }
;


Methods
USING: alien.complex classes.struct classes.struct.private
kernel ;

M: complex-float clone
clone-underlying \ complex-float memory>struct ; inline


USING: accessors alien.complex classes.struct combinators.smart
;

M: complex-float struct-slot-values
{ [ real>> ] [ imaginary>> ] } cleave>array ; inline

AltStyle によって変換されたページ (->オリジナル) /