def isComplex(vals):
    """Check numpy or pg.Vector if have complex data type"""
    if isScalar(vals):
        if isinstance(vals, (np.complex128, complex)):
            return True
    elif isArray(vals):
        return isComplex(vals[0])
    return False