def broadcast

stelliferous@0.0.2.0 · tensor_shape.bend:77

import stelliferous@0.0.2.0/tensor_shape.bend as TensorShape
import Base

77# The common extents of two operands under NumPy broadcasting: the extents are
78# aligned at the last axis, a missing axis counts as 1, and on each axis the
79# extents are equal or one of them is 1.
80def broadcast(+left: List<&2,U32>,+right: List<&2,U32>) -> Maybe<&2,List<&2,U32>>:
81  broadcast_same_rank(with_rank(left,List.length(&2,U32,right)),with_rank(right,List.length(&2,U32,left)))

Uses (6)

Used by (3)