function rowmajor( shape ) {
	var ndims;
	var out;
	var s;
	var i;

	ndims = shape.length;
	out = [];
	for ( i = 0; i < ndims; i++ ) {
		out.push( 0 );
	}
	s = 1;
	for ( i = ndims-1; i >= 0; i-- ) {
		out[ i ] = s;
		s *= shape[ i ];
	}
	return out;
}
Generates a stride array from an array shape (row-major).

@private
@param {NonNegativeIntegerArray} shape - array shape
@returns {Array} array strides