Handbook
Glossary
calculate-row-major-index ( seq shape -- i )
Vocabulary
arrays
.
shaped
Inputs
seq
an
object
shape
an
object
Outputs
i
an
object
Definition
USING:
kernel
math
math.vectors
sequences
;
IN:
arrays.shaped
:
calculate-row-major-index
( seq shape -- i )
1
[
*
]
accumulate
nip
reverse
vdot
;