complex-float-array - Factor Documentation

complex-float-array


Vocabulary
specialized-arrays .instances .alien .complex .complex-float

Definition
USING: alien sequences.private ;

IN: specialized-arrays.instances.alien.complex.complex-float

TUPLE: complex-float-array
{ underlying c-ptr read-only initial: f }
{ length array-capacity read-only initial: 0 } ; final


Methods
USING: prettyprint.custom
specialized-arrays.instances.alien.complex.complex-float ;

M: complex-float-array >pprint-sequence ;


USING: accessors kernel
specialized-arrays.instances.alien.complex.complex-float ;

M: complex-float-array clone
[ underlying>> clone ] [ length>> ] bi
<direct-complex-float-array> ; inline


USING: kernel
specialized-arrays.instances.alien.complex.complex-float
specialized-arrays.private ;

M: complex-float-array direct-like
drop <direct-complex-float-array> ; inline


USING: alien alien.c-types alien.complex kernel
specialized-arrays.instances.alien.complex.complex-float ;

M: complex-float-array element-size
drop \ complex-float heap-size ; inline


USING: classes kernel sequences
specialized-arrays.instances.alien.complex.complex-float ;

M: complex-float-array equal?
over complex-float-array instance?
[ sequence= ] [ 2drop f ] if ;


USING: accessors sequences
specialized-arrays.instances.alien.complex.complex-float ;

M: complex-float-array length length>> ; inline


USING: alien.complex alien.data classes kernel sequences
specialized-arrays.instances.alien.complex.complex-float ;

M: complex-float-array like
drop dup complex-float-array instance?
[ \ complex-float >c-array ] unless ; inline


USING: kernel sequences
specialized-arrays.instances.alien.complex.complex-float ;

M: complex-float-array new-sequence
drop (complex-float-array) ; inline


USING: accessors alien alien.c-types alien.complex kernel
specialized-arrays.instances.alien.complex.complex-float
specialized-arrays.private ;

M: complex-float-array nth-c-ptr
underlying>> \ complex-float array-accessor drop
swap <displaced-alien> ; inline


USING: accessors alien.c-types alien.complex kernel math
sequences.private
specialized-arrays.instances.alien.complex.complex-float ;

M: complex-float-array nth-unsafe
[ integer>fixnum ] dip
underlying>> \ complex-float alien-element ; inline


USING: kernel prettyprint.custom
specialized-arrays.instances.alien.complex.complex-float ;

M: complex-float-array pprint-delims
drop \ complex-float-array{ \ } ;


USING: accessors alien.c-types alien.complex byte-arrays kernel
math sequences.private
specialized-arrays.instances.alien.complex.complex-float ;

M: complex-float-array resize
[
[ \ complex-float heap-size * ] [ underlying>> ] bi*
resize-byte-array
] keepd <direct-complex-float-array> ; inline


USING: accessors alien.c-types alien.complex kernel math
sequences.private
specialized-arrays.instances.alien.complex.complex-float ;

M: complex-float-array set-nth-unsafe
[ integer>fixnum ] dip
underlying>> \ complex-float set-alien-element ; inline


USING: alien.complex kernel specialized-arrays
specialized-arrays.instances.alien.complex.complex-float ;

M: complex-float-array underlying-type drop \ complex-float ;


USING: alien.c-types alien.complex math math.vectors sequences
specialized-arrays.instances.alien.complex.complex-float ;

M: complex-float-array v*high
[ * \ complex-float heap-size neg shift ] 2map ; inline


USING: alien.c-types alien.complex math math.vectors sequences
specialized-arrays.instances.alien.complex.complex-float ;

M: complex-float-array vs*
[ * \ complex-float c-type-clamp ] 2map ; inline


USING: alien.c-types alien.complex math math.vectors sequences
specialized-arrays.instances.alien.complex.complex-float ;

M: complex-float-array vs+
[ + \ complex-float c-type-clamp ] 2map ; inline


USING: alien.c-types alien.complex math math.vectors sequences
specialized-arrays.instances.alien.complex.complex-float ;

M: complex-float-array vs-
[ - \ complex-float c-type-clamp ] 2map ; inline

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