function shape2strides( shape, order ) {
	if ( isColumnMajor( order ) ) {
		return columnmajor( shape );
	}
	return rowmajor( shape );
}
Generates a stride array from an array shape.

@param {NonNegativeIntegerArray} shape - array shape
@param {string} order - specifies whether an array is row-major (C-style) or column-major (Fortran-style)
@returns {Array} array strides

@example
var s = shape2strides( [ 3, 2 ], 'row-major' );
// returns [ 2, 1 ]

s = shape2strides( [ 3, 2 ], 'column-major' );
// returns [ 1, 3 ]