- Timestamp:
- 02/24/22 20:33:45 (2 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
-
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic
- Property svn:mergeinfo changed
-
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/OpCodes.cs
r18160 r18220 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Linq;25 24 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 26 25 … … 79 78 CubeRoot = 51, 80 79 Tanh = 52, 80 SubFunction = 53, 81 81 Constant = 54 82 82 }; … … 84 84 // constants for API compatibility only 85 85 public const byte Add = (byte)OpCode.Add; 86 public const byte Sub = (byte)OpCode.Sub;87 public const byte Mul = (byte)OpCode.Mul;88 public const byte Div = (byte)OpCode.Div;89 public const byte Sin = (byte)OpCode.Sin;90 public const byte Cos = (byte)OpCode.Cos;91 public const byte Tan = (byte)OpCode.Tan;92 public const byte Log = (byte)OpCode.Log;86 public const byte Sub = (byte)OpCode.Sub; 87 public const byte Mul = (byte)OpCode.Mul; 88 public const byte Div = (byte)OpCode.Div; 89 public const byte Sin = (byte)OpCode.Sin; 90 public const byte Cos = (byte)OpCode.Cos; 91 public const byte Tan = (byte)OpCode.Tan; 92 public const byte Log = (byte)OpCode.Log; 93 93 public const byte Exp = (byte)OpCode.Exp; 94 94 public const byte IfThenElse = (byte)OpCode.IfThenElse; … … 103 103 public const byte LagVariable = (byte)OpCode.LagVariable; 104 104 public const byte Number = (byte)OpCode.Number; 105 public const byte Constant = (byte) 105 public const byte Constant = (byte)OpCode.Constant; 106 106 public const byte Arg = (byte)OpCode.Arg; 107 107 public const byte Power = (byte)OpCode.Power; … … 136 136 public const byte CubeRoot = (byte)OpCode.CubeRoot; 137 137 public const byte Tanh = (byte)OpCode.Tanh; 138 138 public const byte SubFunction = (byte)OpCode.SubFunction; 139 139 140 140 private static Dictionary<Type, byte> symbolToOpcode = new Dictionary<Type, byte>() { 141 141 { typeof(Addition), OpCodes.Add }, 142 142 { typeof(Subtraction), OpCodes.Sub }, 143 143 { typeof(Multiplication), OpCodes.Mul }, … … 192 192 { typeof(AnalyticQuotient), OpCodes.AnalyticQuotient }, 193 193 { typeof(Cube), OpCodes.Cube }, 194 { typeof(CubeRoot), OpCodes.CubeRoot } 194 { typeof(CubeRoot), OpCodes.CubeRoot }, 195 { typeof(SubFunctionSymbol), OpCodes.SubFunction } 195 196 }; 196 197
Note: See TracChangeset
for help on using the changeset viewer.