function dmaxsorted( N, x, strideX, offsetX ) {
	var v1;
	var v2;

	if ( N <= 0 ) {
		return NaN;
	}
	if ( N === 1 || strideX === 0 ) {
		return x[ 0 ];
	}
	v1 = x[ offsetX ];
	v2 = x[ offsetX + ((N-1)*strideX) ];
	if ( isnan( v1 ) || isnan( v2 ) ) {
		return NaN;
	}
	if ( v1 === v2 ) {
		if ( isPositiveZero( v1 ) || isPositiveZero( v2 ) ) {
			return 0.0;
		}
		return v1;
	}
	if ( v1 > v2 ) {
		return v1;
	}
	return v2;
}
Computes the maximum value of a sorted double-precision floating-point strided array.

@param {PositiveInteger} N - number of indexed elements
@param {Float64Array} x - sorted input array
@param {integer} strideX - stride length
@param {NonNegativeInteger} offsetX - starting index
@returns {number} maximum value

@example
var Float64Array = require( '@stdlib/array/float64' );

var x = new Float64Array( [ 2.0, -3.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0 ] );

var v = dmaxsorted( 4, x, 2, 1 );
// returns 4.0