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
// Trivial case where we have all positive strides...
363
367
if ( io==1 ) {
364
-
returnind+idx; // pointer arithmetic
368
+
returnind+j; // pointer arithmetic
365
369
}
366
370
// Trivial case where we have all negative strides...
367
371
if ( io==-1 ) {
368
-
returnind-idx; // pointer arithmetic
372
+
returnind-j; // pointer arithmetic
369
373
}
370
374
// The approach which follows is to resolve a view index to its subscripts and then plug the subscripts into the standard formula for computing the linear index in the underlying byte array...
371
375
ndims=arr->ndims;
372
376
shape=arr->shape;
373
377
strides=arr->strides;
374
378
if ( (arr->order) ==STDLIB_NDARRAY_COLUMN_MAJOR ) {
0 commit comments