function sasum( N, x, stride, offset ) {
	var sum;
	var ix;
	var i;

	sum = 0.0;
	if ( N <= 0 ) {
		return sum;
	}
	ix = offset;
	for ( i = 0; i < N; i++ ) {
		sum = f32( sum + absf( x[ ix ] ) );
		ix += stride;
	}
	return sum;
}
Computes the sum of absolute values.

@param {PositiveInteger} N - number of indexed elements
@param {Float32Array} x - input array
@param {integer} stride - `x` stride length
@param {NonNegativeInteger} offset - starting index for `x`
@returns {number} sum

@example
var Float32Array = require( '@stdlib/array/float32' );

var x = new Float32Array( [ 1.0, -2.0, 3.0, -4.0, 5.0 ] );

var s = sasum( x.length, x, 1, 0 );
// returns 15.0