function generic( arr ) {
	var len;
	var out;
	var i;

	len = arr.length;
	out = [];
	for ( i = 0; i < len; i++ ) {
		out.push( arr.iget( i ) ); // as output buffer is generic, should work with both real- and complex-valued ndarrays
	}
	return out;
}
Copies a "generic" ndarray view.

@private
@param {ndarray} arr - input ndarray
@returns {Array} output data buffer