qiskit_optimization/converters/inequality_to_equality.py
def _any_float(values: np.ndarray) -> bool:
        """Check whether the list contains float or not.
        This method is used to check whether a constraint contain float coefficients or not.

        Args:
            values: Coefficients of the constraint

        Returns:
            bool: If the constraint contains float coefficients, this returns True, else False.
        """
        return any(isinstance(v, float) and not v.is_integer() for v in values)
Check whether the list contains float or not.
        This method is used to check whether a constraint contain float coefficients or not.

        Args:
            values: Coefficients of the constraint

        Returns:
            bool: If the constraint contains float coefficients, this returns True, else False.
        
Check whether the list contains float or not.
This method is used to check whether a constraint contain float coefficients or not.
Check whether the list contains float or not . This method is used to check whether a constraint contain float coefficients or not .
def _any_float(values: np.ndarray) -> bool:
        return any(isinstance(v, float) and not v.is_integer() for v in values)
def _any_float ( values : np . ndarray ) -> bool : return any ( isinstance ( v , float ) and not v . is_integer ( ) for v in values )
Check whether the list contains float or not.
Check whether the list contains float or not .
"""Check whether the list contains float or not.
        This method is used to check whether a constraint contain float coefficients or not.

        Args:
            values: Coefficients of the constraint

        Returns:
            bool: If the constraint contains float coefficients, this returns True, else False.
        """
If the constraint contains float coefficients, this returns True, else False.
If the constraint contains float coefficients this returns True else False .
bool
values
np.ndarray
Coefficients of the constraint
Coefficients of the constraint