def float2d_to_complex(arr):
    """Converts a multidimensional float array to a complex array.
    Input must be a float type, since there is no integer complex type.
    >>> y = np.arange(8, dtype=float).reshape((-1, 2))
    >>> float2d_to_complex(y)
    array([[0.+1.j],
           [2.+3.j],
           [4.+5.j],
           [6.+7.j]])
    """
    return arr.view(complex)