Class: Axiom::Optimizer::Function::Predicate::GreaterThan::Tautology
- Inherits:
-
Axiom::Optimizer::Function::Predicate::GreaterThan
- Object
- Axiom::Optimizer
- Axiom::Optimizer::Function::Predicate
- Axiom::Optimizer::Function::Predicate::GreaterThan
- Axiom::Optimizer::Function::Predicate::GreaterThan::Tautology
- Includes:
- Tautology
- Defined in:
- lib/axiom/optimizer/function/predicate/greater_than.rb
Overview
Optimize when the operands are a tautology
Constant Summary
Constants inherited from Axiom::Optimizer
Instance Attribute Summary
Attributes included from Binary
Attributes inherited from Axiom::Optimizer
Instance Method Summary collapse
-
#optimizable? ⇒ Boolean
private
Test if the operands are a tautology.
Methods included from Tautology
Methods included from Binary
Methods inherited from Axiom::Optimizer
Instance Method Details
#optimizable? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Test if the operands are a tautology
37 38 39 |
# File 'lib/axiom/optimizer/function/predicate/greater_than.rb', line 37 def optimizable? operation.class.call(Util.min(left), Util.max(right)) end |