def _vars(ftype, name, *dims):
    """Return a new farray filled with Boolean variables."""
    shape = _dims2shape(*dims)
    objs = list()
    for indices in itertools.product(*[range(i, j) for i, j in shape]):
        objs.append(_VAR[ftype](name, indices))
    return farray(objs, shape, ftype)
def _vars ( ftype , name , * dims ) : shape = _dims2shape ( * dims ) objs = list ( ) for indices in itertools . product ( * [ range ( i , j ) for i , j in shape ] ) : objs . append ( _VAR [ ftype ] ( name , indices ) ) return farray ( objs , shape , ftype )
Return a new farray filled with Boolean variables.