We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1146ea commit ab25d92Copy full SHA for ab25d92
lib/node_modules/@stdlib/ndarray/base/maybe-broadcast-array/lib/main.js
@@ -21,6 +21,7 @@
21
// MODULES //
22
23
var broadcast = require( '@stdlib/ndarray/base/broadcast-array' );
24
+var getShape = require( '@stdlib/ndarray/base/shape' );
25
26
27
// MAIN //
@@ -88,7 +89,7 @@ function maybeBroadcastArray( arr, shape ) {
88
89
var i;
90
91
N = shape.length;
- sh = arr.shape;
92
+ sh = getShape( arr );
93
94
// Check whether we need to broadcast the input array...
95
if ( sh.length === N ) {
0 commit comments