function isSingleSegmentCompatible( shape, strides, offset ) {
	var len;
	var buf;

	// Compute the total number of elements:
	len = numel( shape );
	if ( len === 0 ) {
		return false;
	}
	// Determine the minimum and maximum linear indices which are accessible by the array view:
	buf = minmax( shape, strides, offset );

	return ( len === ( buf[1]-buf[0]+1 ) );
}
Returns a boolean indicating if an array is compatible with a single memory segment.

@param {NonNegativeIntegerArray} shape - array shape
@param {IntegerArray} strides - stride array
@param {NonNegativeInteger} offset - index offset
@returns {boolean} boolean indicating if an array is compatible with a single memory segment

@example
var shape = [ 2, 2 ];
var strides = [ 2, 1 ];
var offset = 0;

var bool = isSingleSegmentCompatible( shape, strides, offset );
// returns true

@example
var shape = [ 10 ];
var strides = [ 3 ];
var offset = 0;

var bool = isSingleSegmentCompatible( shape, strides, offset );
// returns false