array shape
stride array
index offset
boolean indicating if an array is compatible with a single memory segment
var shape = [ 2, 2 ];
var strides = [ 2, 1 ];
var offset = 0;
var bool = isSingleSegmentCompatible( shape, strides, offset );
// returns true
var shape = [ 10 ];
var strides = [ 3 ];
var offset = 0;
var bool = isSingleSegmentCompatible( shape, strides, offset );
// returns false
Returns a boolean indicating if an array is compatible with a single memory segment.