Handbook
Glossary
broadcastable? ( sa0 sa1 -- ? )
Vocabulary
arrays
.
shaped
Inputs
sa0
a
shaped-array
sa1
a
shaped-array
Outputs
?
a boolean
Word description
Tests whether two shapes can broadcast under the trailing-axis rules used by output-shape. This checks shapes without copying either array's elements. Elementwise addition, subtraction and multiplication use these rules.
Definition
USING:
arrays.shaped.private
sequences
;
IN:
arrays.shaped
:
broadcastable?
( sa0 sa1 -- ? )
aligned-shapes
[
compatible-dimensions?
]
2all?
;