function gnrm2( N, x, stride, offset ) {
	var scale;
	var buf;
	var get;
	var ssq;
	var ax;
	var ix;
	var i;

	buf = x.data;
	get = x.accessors[ 0 ];

	ix = offset;
	if ( N === 1 ) {
		return abs( get( buf, ix ) );
	}
	if ( stride === 0 ) {
		return sqrt( N ) * abs( get( buf, ix ) );
	}
	scale = 0.0;
	ssq = 1.0;
	for ( i = 0; i < N; i++ ) {
		if ( get( buf, ix ) !== 0.0 ) {
			ax = abs( get( buf, ix ) );
			if ( scale < ax ) {
				ssq = 1.0 + ( ssq * pow( scale/ax, 2 ) );
				scale = ax;
			} else {
				ssq += pow( ax/scale, 2 );
			}
		}
		ix += stride;
	}
	return scale * sqrt( ssq );
}
Computes the L2-norm of a vector.

@private
@param {PositiveInteger} N - number of indexed elements
@param {Object} x - input array object
@param {Collection} x.data - input array data
@param {Array<Function>} x.accessors - array element accessors
@param {integer} stride - stride length
@param {NonNegativeInteger} offset - starting index
@returns {number} L2-norm

@example
var toAccessorArray = require( '@stdlib/array/base/to-accessor-array' );
var arraylike2object = require( '@stdlib/array/base/arraylike2object' );

var x = [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0 ];

var z = gnrm2( 4, arraylike2object( toAccessorArray( x ) ), 2, 1 );
// returns 5.0