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
thrownewTypeError(format('invalid argument. Options argument must be an object. Value: `%s`.',options));
85
+
thrownewTypeError(format('0kJ2V',options));
86
86
}
87
87
if(hasOwnProp(options,'dtype')){
88
88
dtype=options.dtype;
@@ -112,14 +112,14 @@ function zeros( shape ) {
112
112
}elseif(isArrayLike(shape)){
113
113
sh=shape;
114
114
}else{
115
-
thrownewTypeError(format('invalid argument. First argument must be either a nonnegative integer or an array of nonnegative integers. Value: `%s`.',shape));
115
+
thrownewTypeError(format('0kJ5s',shape));
116
116
}
117
117
ndims=sh.length;
118
118
if(ndims>0){
119
119
len=numel(sh);
120
120
if(len!==len||len<0){
121
121
// We should only get here if we've been provided an invalid shape (e.g., an array containing negative integers, etc)...
122
-
thrownewTypeError(format('invalid argument. First argument must be either a nonnegative integer or an array of nonnegative integers. Value: `%s`.',shape));
122
+
thrownewTypeError(format('0kJ5s',shape));
123
123
}
124
124
st=shape2strides(sh,order);
125
125
}else{
@@ -129,7 +129,7 @@ function zeros( shape ) {
129
129
}
130
130
buf=buffer(dtype,len);
131
131
if(buf===null){
132
-
thrownewTypeError(format('invalid option. `%s` option must be a recognized data type. Option: `%s`.','dtype',dtype));
0 commit comments