- def project_out(self, symbols):
- # use to remove certain variables
- if isinstance(symbols, str):
- symbols = symbols.replace(',', ' ').split()
- else:
- symbols = list(symbols)
- for i, symbol in enumerate(symbols):
- if isinstance(symbol, Symbol):
- symbols[i] = symbol.name
- elif not isinstance(symbol, str):
- raise TypeError('symbols must be strings or Symbol instances')
+ def drop_dims(self, dims):
+ # use to remove certain variables use isl_set_drop_constraints_involving_dims instead?
+ from .polyhedra import Polyhedron
+ n = 0
+ dims = list(dims)
+ symbols = list(self.symbols)