We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 061365c commit f59a264Copy full SHA for f59a264
lib/node_modules/@stdlib/ndarray/zeros-like/lib/main.js
@@ -129,9 +129,6 @@ function zerosLike( x ) {
129
ndims = sh.length;
130
if ( ndims > 0 ) {
131
len = numel( sh );
132
- if ( len < 0 ) {
133
- len = 0; // note: we should only get here if an inferred shape is invalid (i.e., contains negative dimension sizes)
134
- }
135
st = shape2strides( sh, order );
136
} else {
137
// For 0-dimensional arrays, the buffer should contain a single element...
0 commit comments