Handbook
Glossary
body
Vocabulary
benchmark
.
nbody-simd
Definition
USING:
alien.c-types
classes.struct
math.vectors.simd.cords
;
IN:
benchmark.nbody-simd
STRUCT:
body
{
location
double-4
initial:
double-4{
0.0 0.0 0.0 0.0
}
}
{
velocity
double-4
initial:
double-4{
0.0 0.0 0.0 0.0
}
}
{
mass
double
initial:
0.0
}
;
Methods
USING:
benchmark.nbody-simd
classes.struct
classes.struct.private
kernel
;
M:
body
clone
clone-underlying
\
body
memory>struct
;
inline
USING:
accessors
benchmark.nbody-simd
classes.struct
combinators.smart
;
M:
body
struct-slot-values
{
[
location>>
]
[
velocity>>
]
[
mass>>
]
}
cleave>array
;
inline