From fd5e2feb14b3380141265288cfe55f1adb7f86e8 Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Tue, 30 Jul 2024 10:53:08 -0700 Subject: [PATCH] Add blurb explaining broadcasting in more detail Update NumPy URLs, too. Resolves #378 --- index.bs | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/index.bs b/index.bs index e6efa366..046080cc 100644 --- a/index.bs +++ b/index.bs @@ -2284,7 +2284,7 @@ partial interface MLGraphBuilder { ### Element-wise binary operations ### {#api-mlgraphbuilder-binary} Compute the element-wise binary addition, subtraction, multiplication, division, power, maximum and minimum of the two input tensors. -The operation will be broadcast according to [[!numpy-broadcasting-rule]]. The input tensors must be [=bidirectionally broadcastable=]. The [=MLOperand/rank=] of the output tensor is the maximum [=MLOperand/rank=] of the input tensors. For each dimension of the output tensor, its size is the maximum size along that dimension of the input tensors. +The operation will be [=broadcast=] according to [[!numpy-broadcasting-rule]]. The input tensors must be [=bidirectionally broadcastable=]. The [=MLOperand/rank=] of the output tensor is the maximum [=MLOperand/rank=] of the input tensors. For each dimension of the output tensor, its size is the maximum size along that dimension of the input tensors.