Skip to content

Commit

Permalink
feat: add maybeBroadcastArray to namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Oct 6, 2023
1 parent 3e3d62e commit c8af478
Show file tree
Hide file tree
Showing 28 changed files with 46 additions and 20 deletions.
1 change: 1 addition & 0 deletions lib/node_modules/@stdlib/namespace/alias2pkg/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2251,6 +2251,7 @@ mapValuesAsync,"@stdlib/utils/async/map-values"
maskArguments,"@stdlib/utils/mask-arguments"
MAX_ARRAY_LENGTH,"@stdlib/constants/array/max-array-length"
MAX_TYPED_ARRAY_LENGTH,"@stdlib/constants/array/max-typed-array-length"
maybeBroadcastArray,"@stdlib/ndarray/maybe-broadcast-array"
memoize,"@stdlib/utils/memoize"
merge,"@stdlib/utils/merge"
MILLISECONDS_IN_DAY,"@stdlib/constants/time/milliseconds-in-day"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@ bifurcateOwn,"bifurcate,bifurcateBy,bifurcateIn,groupOwn"
BigInt,""
binomialTest,""
Boolean,""
broadcastArray,"array,ndarray"
broadcastArray,"array,ndarray,maybeBroadcastArray"
Buffer,"ArrayBuffer"
buffer2json,"typedarray2json,reviveBuffer"
BYTE_ORDER,"IS_BIG_ENDIAN,IS_LITTLE_ENDIAN"
Expand Down Expand Up @@ -2251,6 +2251,7 @@ mapValuesAsync,"mapKeysAsync,mapValues"
maskArguments,"filterArguments,rejectArguments,reorderArguments,reverseArguments"
MAX_ARRAY_LENGTH,"MAX_TYPED_ARRAY_LENGTH"
MAX_TYPED_ARRAY_LENGTH,"MAX_ARRAY_LENGTH"
maybeBroadcastArray,"array,ndarray,broadcastArray"
memoize,""
merge,"copy"
MILLISECONDS_IN_DAY,""
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2251,6 +2251,7 @@ mapValuesAsync,"@stdlib/utils-async-map-values"
maskArguments,"@stdlib/utils-mask-arguments"
MAX_ARRAY_LENGTH,"@stdlib/constants-array-max-array-length"
MAX_TYPED_ARRAY_LENGTH,"@stdlib/constants-array-max-typed-array-length"
maybeBroadcastArray,"@stdlib/ndarray-maybe-broadcast-array"
memoize,"@stdlib/utils-memoize"
merge,"@stdlib/utils-merge"
MILLISECONDS_IN_DAY,"@stdlib/constants-time-milliseconds-in-day"
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/namespace/aliases/data/data.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/node_modules/@stdlib/namespace/aliases/data/data.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2251,6 +2251,7 @@ mapValuesAsync
maskArguments
MAX_ARRAY_LENGTH
MAX_TYPED_ARRAY_LENGTH
maybeBroadcastArray
memoize
merge
MILLISECONDS_IN_DAY
Expand Down
3 changes: 2 additions & 1 deletion lib/node_modules/@stdlib/namespace/lib/namespace/b.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ ns.push({
'type': 'Function',
'related': [
'@stdlib/ndarray/array',
'@stdlib/ndarray/ctor'
'@stdlib/ndarray/ctor',
'@stdlib/ndarray/maybe-broadcast-array'
]
});

Expand Down
12 changes: 12 additions & 0 deletions lib/node_modules/@stdlib/namespace/lib/namespace/m.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,18 @@ ns.push({
]
});

ns.push({
'alias': 'maybeBroadcastArray',
'path': '@stdlib/ndarray/maybe-broadcast-array',
'value': require( '@stdlib/ndarray/maybe-broadcast-array' ),
'type': 'Function',
'related': [
'@stdlib/ndarray/array',
'@stdlib/ndarray/ctor',
'@stdlib/ndarray/broadcast-array'
]
});

ns.push({
'alias': 'memoize',
'path': '@stdlib/utils/memoize',
Expand Down
1 change: 1 addition & 0 deletions lib/node_modules/@stdlib/namespace/pkg2alias/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2251,6 +2251,7 @@
"@stdlib/utils/mask-arguments",maskArguments
"@stdlib/constants/array/max-array-length",MAX_ARRAY_LENGTH
"@stdlib/constants/array/max-typed-array-length",MAX_TYPED_ARRAY_LENGTH
"@stdlib/ndarray/maybe-broadcast-array",maybeBroadcastArray
"@stdlib/utils/memoize",memoize
"@stdlib/utils/merge",merge
"@stdlib/constants/time/milliseconds-in-day",MILLISECONDS_IN_DAY
Expand Down

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion lib/node_modules/@stdlib/namespace/pkg2related/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@
"@stdlib/bigint/ctor",""
"@stdlib/stats/binomial-test",""
"@stdlib/boolean/ctor",""
"@stdlib/ndarray/broadcast-array","@stdlib/ndarray/array,@stdlib/ndarray/ctor"
"@stdlib/ndarray/broadcast-array","@stdlib/ndarray/array,@stdlib/ndarray/ctor,@stdlib/ndarray/maybe-broadcast-array"
"@stdlib/buffer/ctor","@stdlib/array/buffer"
"@stdlib/buffer/to-json","@stdlib/array/to-json,@stdlib/buffer/reviver"
"@stdlib/os/byte-order","@stdlib/assert/is-big-endian,@stdlib/assert/is-little-endian"
Expand Down Expand Up @@ -2251,6 +2251,7 @@
"@stdlib/utils/mask-arguments","@stdlib/utils/filter-arguments,@stdlib/utils/reject-arguments,@stdlib/utils/reorder-arguments,@stdlib/utils/reverse-arguments"
"@stdlib/constants/array/max-array-length","@stdlib/constants/array/max-typed-array-length"
"@stdlib/constants/array/max-typed-array-length","@stdlib/constants/array/max-array-length"
"@stdlib/ndarray/maybe-broadcast-array","@stdlib/ndarray/array,@stdlib/ndarray/ctor,@stdlib/ndarray/broadcast-array"
"@stdlib/utils/memoize",""
"@stdlib/utils/merge","@stdlib/utils/copy"
"@stdlib/constants/time/milliseconds-in-day",""
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2251,6 +2251,7 @@
"@stdlib/utils/mask-arguments","@stdlib/utils-mask-arguments"
"@stdlib/constants/array/max-array-length","@stdlib/constants-array-max-array-length"
"@stdlib/constants/array/max-typed-array-length","@stdlib/constants-array-max-typed-array-length"
"@stdlib/ndarray/maybe-broadcast-array","@stdlib/ndarray-maybe-broadcast-array"
"@stdlib/utils/memoize","@stdlib/utils-memoize"
"@stdlib/utils/merge","@stdlib/utils-merge"
"@stdlib/constants/time/milliseconds-in-day","@stdlib/constants-time-milliseconds-in-day"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2251,6 +2251,7 @@
"@stdlib/utils-mask-arguments","@stdlib/utils/mask-arguments"
"@stdlib/constants-array-max-array-length","@stdlib/constants/array/max-array-length"
"@stdlib/constants-array-max-typed-array-length","@stdlib/constants/array/max-typed-array-length"
"@stdlib/ndarray-maybe-broadcast-array","@stdlib/ndarray/maybe-broadcast-array"
"@stdlib/utils-memoize","@stdlib/utils/memoize"
"@stdlib/utils-merge","@stdlib/utils/merge"
"@stdlib/constants-time-milliseconds-in-day","@stdlib/constants/time/milliseconds-in-day"
Expand Down

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/node_modules/@stdlib/repl/code-blocks/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3682,6 +3682,7 @@ nditerColumns,"var x = array( [ [ 1, 2 ], [ 3, 4 ] ] );\nvar it = nditerColumns(
nditerEntries,"var x = array( [ [ 1, 2 ], [ 3, 4 ] ] );\nvar it = nditerEntries( x );\nvar v = it.next().value\nv = it.next().value\n"
nditerIndices,"var x = array( [ [ 1, 2 ], [ 3, 4 ] ] );\nvar it = nditerIndices( x.shape );\nvar v = it.next().value\nv = it.next().value\n"
nditerRows,"var x = array( [ [ 1, 2 ], [ 3, 4 ] ] );\nvar it = nditerRows( x );\nvar v = it.next().value;\nndarray2array( v )\nv = it.next().value;\nndarray2array( v )\n"
nditerValues,"var x = array( [ [ 1, 2 ], [ 3, 4 ] ] );\nvar it = nditerValues( x );\nvar v = it.next().value\nv = it.next().value\n"
ndslice,"var x = array( [ [ 1, 2 ], [ 3, 4 ] ] )\nx.shape\nvar s = new MultiSlice( null, 1 )\nvar y = ndslice( x, s )\ny.shape\nndarray2array( y )\n"
ndsliceAssign,"var y = ndzeros( [ 2, 2 ] )\nvar x = scalar2ndarray( 3.0 )\nvar s = new MultiSlice( null, 1 )\nvar out = ndsliceAssign( x, y, s )\nvar bool = ( out === y )\nndarray2array( y )\n"
ndzeros,"var arr = ndzeros( [ 2, 2 ] )\nvar sh = arr.shape\nvar dt = arr.dtype\n"
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/repl/code-blocks/data/data.json

Large diffs are not rendered by default.

Loading

1 comment on commit c8af478

@stdlib-bot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage Report

Package Statements Branches Functions Lines
namespace/alias2pkg $\color{green}95/95$
$\color{green}+100.00\%$
$\color{green}7/7$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}95/95$
$\color{green}+100.00\%$
namespace/alias2related $\color{green}95/95$
$\color{green}+100.00\%$
$\color{green}7/7$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}95/95$
$\color{green}+100.00\%$
namespace/alias2standalone $\color{green}95/95$
$\color{green}+100.00\%$
$\color{green}7/7$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}95/95$
$\color{green}+100.00\%$
namespace/aliases $\color{green}144/144$
$\color{green}+100.00\%$
$\color{green}14/14$
$\color{green}+100.00\%$
$\color{green}2/2$
$\color{green}+100.00\%$
$\color{green}144/144$
$\color{green}+100.00\%$
namespace $\color{green}95/95$
$\color{green}+100.00\%$
$\color{green}4/4$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}95/95$
$\color{green}+100.00\%$
namespace/pkg2alias $\color{green}100/100$
$\color{green}+100.00\%$
$\color{green}10/10$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}100/100$
$\color{green}+100.00\%$
namespace/pkg2related $\color{green}100/100$
$\color{green}+100.00\%$
$\color{green}10/10$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}100/100$
$\color{green}+100.00\%$
namespace/pkg2standalone $\color{green}95/95$
$\color{green}+100.00\%$
$\color{green}7/7$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}95/95$
$\color{green}+100.00\%$
namespace/standalone2pkg $\color{green}95/95$
$\color{green}+100.00\%$
$\color{green}7/7$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}95/95$
$\color{green}+100.00\%$
ndarray/base/maybe-broadcast-array $\color{green}179/179$
$\color{green}+100.00\%$
$\color{green}8/8$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}179/179$
$\color{green}+100.00\%$
ndarray $\color{green}303/303$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}0/0$
$\color{green}+100.00\%$
$\color{green}303/303$
$\color{green}+100.00\%$
ndarray/maybe-broadcast-array $\color{green}196/196$
$\color{green}+100.00\%$
$\color{green}14/14$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}196/196$
$\color{green}+100.00\%$
repl/code-blocks $\color{green}95/95$
$\color{green}+100.00\%$
$\color{green}7/7$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}95/95$
$\color{green}+100.00\%$
repl/help $\color{green}95/95$
$\color{green}+100.00\%$
$\color{green}7/7$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}95/95$
$\color{green}+100.00\%$
repl/info $\color{green}95/95$
$\color{green}+100.00\%$
$\color{green}7/7$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}95/95$
$\color{green}+100.00\%$
repl/signature $\color{green}99/99$
$\color{green}+100.00\%$
$\color{green}10/10$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}99/99$
$\color{green}+100.00\%$
repl/typed-signature $\color{green}99/99$
$\color{green}+100.00\%$
$\color{green}10/10$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}99/99$
$\color{green}+100.00\%$

The above coverage report was generated for the changes in this push.

Please sign in to comment.