From 312a9e8b04cea698bcc602dc349e1264305d5323 Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Fri, 9 Feb 2024 22:21:33 -0800 Subject: [PATCH] Update index.bs Co-authored-by: Dwayne Robinson --- index.bs | 1 + 1 file changed, 1 insertion(+) diff --git a/index.bs b/index.bs index a6456311..f2e8f1e3 100644 --- a/index.bs +++ b/index.bs @@ -6212,6 +6212,7 @@ To unidirectionally broa 1. Let |sizeA| be the [=list/size=] of |A|. 1. Let |sizeB| be the [=list/size=] of |B|. +1. If |sizeB| > |sizeA|, then return failure. 1. Let |outputShape| be a new [=/list=]. 1. [=list/For each=] |index| in [=the range=] 0 to |sizeA|, exclusive: 1. Let |dimA| be |A|[|sizeA| - |index| - 1] if |index| < |sizeA|, or 1 otherwise.