Skip to content

Commit 23bc583

Browse files
committed
Added hisotry
1 parent c267a8c commit 23bc583

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

src/function/matrix/broadcastMatrices.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,22 @@ export const createBroadcastMatrices = /* #__PURE__ */ factory(name, dependencie
1212
*
1313
* Syntax:
1414
*
15-
* math.broadcastMatrices(x, y)
16-
* math.broadcastMatrices(x, y, ...)
15+
* math.broadcastMatrices(x, y)
16+
* math.broadcastMatrices(x, y, ...)
1717
*
1818
* Examples:
1919
*
20-
* math.broadcastMatrices([1, 2], [[3], [4]]) // returns [[[1, 2], [1, 2]], [[3, 3], [4, 4]]]
21-
* math.broadcastMatrices([2, 3]) // returns [[2, 3]]
22-
* math.broadcastMatrices([2, 3], [3, 1]) // returns [[2, 3], [3, 1]]
20+
* math.broadcastMatrices([1, 2], [[3], [4]]) // returns [[[1, 2], [1, 2]], [[3, 3], [4, 4]]]
21+
* math.broadcastMatrices([2, 3]) // returns [[2, 3]]
22+
* math.broadcastMatrices([2, 3], [3, 1]) // returns [[2, 3], [3, 1]]
2323
*
2424
* See also:
2525
*
2626
* size, reshape, broadcastSizes, broadcastTo
2727
*
28+
* History:
29+
*
30+
* v15.1.1 created
2831
* @param {...(Array|Matrix)} x One or more matrices or arrays
2932
* @return {Array[Array|Matrix]} An array of matrices with the broadcasted sizes.
3033
*/

src/function/matrix/broadcastSizes.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@ export const createBroadcastSizes = /* #__PURE__ */ factory(name, dependencies,
1919
*
2020
* math.broadcastSizes([2, 3]) // returns [2, 3]
2121
* math.broadcastSizes([2, 3], [3]) // returns [2, 3]
22-
* math.broadcastSizes([1, 2, 3], [1, 2, 1]) // returns [[1, 2, 3]]
22+
* math.broadcastSizes([1, 2, 3], [1, 2, 1]) // returns [1, 2, 3]
2323
*
2424
* See also:
2525
*
2626
* size, reshape, squeeze, broadcastTo
2727
*
28+
* History:
29+
*
30+
* v15.1.1 created
2831
* @param {...(Array|Matrix)} x One or more matrices or arrays
2932
* @return {Array} A vector with the broadcasted size.
3033
*/

src/function/matrix/broadcastTo.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ export const createBroadcastTo = /* #__PURE__ */ factory(name, dependencies, ({
2121
*
2222
* size, reshape, squeeze, broadcastSizes
2323
*
24+
* History:
25+
*
26+
* v15.1.1 created
27+
*
2428
* @param {Array|Matrix} x The array or matrix to broadcast
2529
* @param {Array|Matrix} size The target size
2630
* @return {Array} The broadcasted array

0 commit comments

Comments
 (0)