Handbook
Glossary
check-underlying-shape ( underlying shape -- underlying shape )
Vocabulary
arrays
.
shaped
Inputs
underlying
an
object
shape
an
object
Outputs
underlying
an
object
shape
an
object
Definition
IN:
arrays.shaped
GENERIC:
check-underlying-shape
( underlying shape -- underlying shape )
Methods
USING:
arrays.shaped
;
M:
abnormal-shape
check-underlying-shape
no-abnormally-shaped-arrays
;
USING:
arrays.shaped
kernel
sequences
;
M:
sequence
check-underlying-shape
2dup
[
length
]
[
shape-capacity
]
bi*
=
[
underlying-shape-mismatch
]
unless
;
inline
USING:
accessors
arrays.shaped
;
M:
uniform-shape
check-underlying-shape
shape>>
check-underlying-shape
;