Changeset 18180 for branches/3138_Shape_Constraints_Transformations/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreeNodeComparer.cs
- Timestamp:
- 01/10/22 10:15:25 (2 years ago)
- Location:
- branches/3138_Shape_Constraints_Transformations
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3138_Shape_Constraints_Transformations
- Property svn:mergeinfo changed
-
branches/3138_Shape_Constraints_Transformations/HeuristicLab.Problems.DataAnalysis.Symbolic
- Property svn:mergeinfo changed
-
branches/3138_Shape_Constraints_Transformations/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreeNodeComparer.cs
r17180 r18180 28 28 // this comparer considers that a < b if the type of a is "greater" than the type of b, for example: 29 29 // - A function node is "greater" than a terminal node 30 // - A variable terminal is "greater" than a constantterminal30 // - A variable terminal is "greater" than a numeric terminal 31 31 // - used for bringing subtrees to a "canonical" form when the operation allows reordering of arguments 32 32 public class SymbolicExpressionTreeNodeComparer : ISymbolicExpressionTreeNodeComparer { … … 52 52 53 53 // at this point we know a and b are not variables 54 var ca = a as ConstantTreeNode;55 var cb = b as ConstantTreeNode;54 var ca = a as INumericTreeNode; 55 var cb = b as INumericTreeNode; 56 56 57 57 if (ca != null && cb != null)
Note: See TracChangeset
for help on using the changeset viewer.