Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Dec 28, 2023
1 parent 479f15e commit 522b7ad
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion base/broadcast-arrays/benchmark/benchmark.ndims.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function main() {

for ( i = min; i <= max; i++ ) {
f = createBenchmark( i );
bench( pkg+'::ndarray,2d::num_arrays=2,from_ndims=2,to_ndims='+i, f );
bench( pkg+'::ndarray,2d:num_arrays=2,from_ndims=2,to_ndims='+i, f );
}
}

Expand Down
2 changes: 1 addition & 1 deletion base/broadcast-arrays/benchmark/benchmark.num_arrays.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function main() {

for ( i = min; i <= max; i++ ) {
f = createBenchmark( i, 10 );
bench( pkg+'::ndarray,2d::num_arrays='+i+',from_ndims=2,to_ndims=10', f );
bench( pkg+'::ndarray,2d:num_arrays='+i+',from_ndims=2,to_ndims=10', f );
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function main() {

for ( i = min; i <= max; i++ ) {
f = createBenchmark( i, 10 );
bench( pkg+'::ndarray,2d::num_arrays='+i+',from_ndims=2,to_ndims=10', f );
bench( pkg+'::ndarray,2d:num_arrays='+i+',from_ndims=2,to_ndims=10', f );
}
}

Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/index.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion maybe-broadcast-array/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ var isndarrayLike = require( '@stdlib/assert/is-ndarray-like' );
var isCollection = require( '@stdlib/assert/is-collection' );
var isNonNegativeInteger = require( '@stdlib/assert/is-nonnegative-integer' ).isPrimitive;
var broadcast = require( './../../broadcast-array' );
var getShape = require( './../../shape' );
var format = require( '@stdlib/string/format' );


Expand Down Expand Up @@ -101,7 +102,7 @@ function maybeBroadcastArray( x, shape ) {
throw new TypeError( format( 'invalid argument. Second argument must be an array of nonnegative integers. Value: `%s`.', shape ) );
}
N = shape.length;
sh = x.shape;
sh = getShape( x );

// Check whether we need to broadcast the input array...
if ( sh.length === N ) {
Expand Down

0 comments on commit 522b7ad

Please sign in to comment.