function complex( x, searchElement, fromIndex ) {
	var view;
	var re;
	var im;
	var i;
	if ( !isComplexLike( searchElement ) ) {
		return -1;
	}
	view = reinterpret( x, 0 );
	re = real( searchElement );
	im = imag( searchElement );
	for ( i = fromIndex*2; i < view.length; i += 2 ) {
		if ( isSameValue( view[ i ], re ) && isSameValue( view[ i+1 ], im ) ) {
			return i / 2;
		}
	}
	return -1;
}
Returns the index of the first element which equals a provided search element according to the same value algorithm.

@private
@param {Collection} x - input array
@param {*} searchElement - search element
@param {NonNegativeInteger} fromIndex - starting index (inclusive)
@returns {integer} index

@example
var Complex128Array = require( '@stdlib/array/complex128' );
var Complex128 = require( '@stdlib/complex/float64/ctor' );

var x = new Complex128Array( [ 1.0, 2.0, 0.0, 0.0, 3.0, 4.0, 0.0, 0.0 ] );

var idx = complex( x, new Complex128( 3.0, 4.0 ), 1 );
// returns 2