(function from pyomo.contrib.pynumero.interfaces.utils)
pyomo.contrib.pynumero.interfaces.utils
Creates masks for converting from the full vector of values to the vector that contains only the finite values. This is typically used to convert a vector of bounds (that may contain np.inf and -np.inf) to only the bounds that are finite.