array shape
stride array
location of the first indexed value based on the stride array
specifies whether an array is row-major (C-style) or column-major (Fortran-style)
linear index in an underlying data buffer
specifies how to handle a linear index which exceeds array dimensions
linear index in an array view
var shape = [ 3, 3 ];
var strides = [ -3, 1 ];
var offset = 6;
var order = 'row-major';
var mode = 'throw';
var ind = bind2vind( shape, strides, offset, order, 7, mode );
// returns 1
Converts a linear index in an underlying data buffer to a linear index in an array view.
linear index must not exceed array dimensions