buffer length
array shape
stride array
index offset
boolean indicating if a buffer length is compatible
var shape = [ 2, 2 ];
var strides = [ 2, 1 ];
var offset = 0;
var bool = isBufferLengthCompatible( 4, shape, strides, offset );
// returns true
var shape = [ 2, 2 ];
var strides = [ 2, 1 ];
var offset = 2;
var bool = isBufferLengthCompatible( 4, shape, strides, offset );
// returns false
Returns a boolean indicating if a buffer length is compatible with provided ndarray meta data.