You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/ndarray/array/lib/main.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -282,7 +282,7 @@ function array() {
282
282
shape=[len];// assume a 1-dimensional array (vector)
283
283
}
284
284
}else{
285
-
thrownewError('invalid input arguments. Must provide either a data source, array shape, or both.');
285
+
thrownewError('invalid arguments. Must provide either a data source, array shape, or both.');
286
286
}
287
287
// Adjust the array shape to satisfy the minimum number of dimensions...
288
288
if(ndims<opts.ndmin){
@@ -292,7 +292,7 @@ function array() {
292
292
// If not provided a data buffer, create it; otherwise, see if we need to cast a provided data buffer to another data type or perform a copy...
293
293
if(FLG){
294
294
if(buffer.length!==len){
295
-
thrownewRangeError('invalid input arguments. Array shape is incompatible with provided data source. Number of data source elements does not match array shape.');
295
+
thrownewRangeError('invalid arguments. Array shape is incompatible with provided data source. Number of data source elements does not match array shape.');
296
296
}
297
297
if(btype!==dtype||opts.copy){
298
298
buffer=copyView(buffer,dtype);
@@ -310,7 +310,7 @@ function array() {
310
310
buffer=flattenArray(buffer);
311
311
}
312
312
if(buffer.length!==len){
313
-
thrownewRangeError('invalid input arguments. Array shape is incompatible with provided data source. Number of data source elements does not match array shape.');
313
+
thrownewRangeError('invalid arguments. Array shape is incompatible with provided data source. Number of data source elements does not match array shape.');
thrownewError('invalid input arguments. The input buffer is incompatible with the specified meta data. Ensure that the offset is valid with regard to the stride array and that the buffer has enough elements to satisfy the desired array shape.');
171
+
thrownewError('invalid arguments. The input buffer is incompatible with the specified meta data. Ensure that the offset is valid with regard to the stride array and that the buffer has enough elements to satisfy the desired array shape.');
171
172
}
172
173
// Copy `shape` and `strides` to prevent external mutation:
0 commit comments