Handbook
Glossary
grid-dim ( grid-size -- x y )
Vocabulary
cuda
.
libraries
.
private
Inputs
grid-size
an
object
Outputs
x
an
object
y
an
object
Definition
IN:
cuda.libraries.private
GENERIC:
grid-dim
( grid-size -- x y )
foldable
flushable
Methods
USING:
cuda.libraries.private
math
;
M:
integer
grid-dim
1
;
inline
USING:
combinators
cuda.libraries.private
kernel
sequences
;
M:
sequence
grid-dim
dup
length
{
{
0
[
drop
1 1
]
}
{
1
[
first
1
]
}
[
drop
first2
]
}
case
;
inline