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
@@ -197,15 +199,18 @@ tape( 'the function throws an error if the provided options argument does not ha
197
199
}
198
200
t.end();
199
201
200
-
functionscale(z){
201
-
returnz*10.0;
202
-
}
203
-
204
202
functionbadValue(value){
205
203
returnfunctionbadValue(){
206
-
map(x,value,scale);
204
+
varopts={
205
+
'dtype': value
206
+
};
207
+
map(x,opts,scale);
207
208
};
208
209
}
210
+
211
+
functionscale(z){
212
+
returnz*10.0;
213
+
}
209
214
});
210
215
211
216
tape('the function applies a callback to each indexed element in an input ndarray and returns an output ndarray with mapped values (row-major, contiguous)',functiontest(t){
0 commit comments