Changeset 18133
- Timestamp:
- 12/15/21 14:47:36 (3 years ago)
- Location:
- branches/3136_Structural_GP
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3136_Structural_GP/HeuristicLab.ExtLibs/HeuristicLab.NativeInterpreter/0.1/NativeInterpreter-0.1/src/instruction.h
r16701 r18133 28 28 Cube = 50, 29 29 CubeRoot = 51, 30 Tanh = 52 30 Tanh = 52, 31 SubFunction = 53 31 32 }; 32 33 -
branches/3136_Structural_GP/HeuristicLab.ExtLibs/HeuristicLab.NativeInterpreter/0.1/NativeInterpreter-0.1/src/interpreter.h
r16905 r18133 138 138 break; 139 139 } 140 case OpCodes::SubFunction: 141 { 142 in.value = code[in.childIndex].value; 143 break; 144 } 140 145 default: in.value = NAN; 141 146 } … … 291 296 break; 292 297 } 298 case OpCodes::SubFunction: 299 { 300 load(in.buf, code[in.childIndex].buf); 301 break; 302 } 303 293 304 default: load(in.buf, NAN); 294 305 } 295 306 } 296 307 } -
branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/SymbolicDataAnalysisExpressionCompiledTreeInterpreter.cs
r17351 r18133 661 661 ); 662 662 } 663 case OpCodes.SubFunction: { 664 return MakeExpr(node.GetSubtree(0), variableIndices, row, columns); 665 } 663 666 default: 664 667 throw new NotSupportedException("Unsupported symbol: " + node.Symbol); -
branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/SymbolicDataAnalysisExpressionTreeBatchInterpreter.cs
r17801 r18133 180 180 break; 181 181 } 182 182 183 case OpCodes.Tanh: { 183 184 Tanh(instr.buf, code[c].buf); 184 185 break; 185 186 } 187 186 188 case OpCodes.Absolute: { 187 189 Absolute(instr.buf, code[c].buf); … … 192 194 Load(instr.buf, code[c].buf); 193 195 AnalyticQuotient(instr.buf, code[c + 1].buf); 196 break; 197 } 198 199 case OpCodes.SubFunction: { 200 Load(instr.buf, code[c].buf); 194 201 break; 195 202 } -
branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/SymbolicDataAnalysisExpressionTreeILEmittingInterpreter.cs
r17180 r18133 723 723 " is not supported by the SymbolicDataAnalysisTreeILEmittingInterpreter"); 724 724 } 725 case OpCodes.SubFunction: { 726 CompileInstructions(il, state, ds); 727 return; 728 } 725 729 default: 726 730 throw new NotSupportedException("Interpretation of symbol " + currentInstr.dynamicNode.Symbol.Name + -
branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/SymbolicDataAnalysisExpressionTreeLinearInterpreter.cs
r17180 r18133 388 388 state.Reset(); 389 389 instr.value = interpreter.Evaluate(dataset, ref row, state); 390 } else if (instr.opCode == OpCodes.SubFunction) { 391 instr.value = code[instr.childIndex].value; 390 392 } else { 391 393 var errorText = string.Format("The {0} symbol is not supported by the linear interpreter. To support this symbol, please use the SymbolicDataAnalysisExpressionTreeInterpreter.", instr.dynamicNode.Symbol.Name); -
branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/SymbolicDataAnalysisExpressionTreeNativeInterpreter.cs
r17801 r18133 121 121 (byte)OpCode.Cube, 122 122 (byte)OpCode.Absolute, 123 (byte)OpCode.AnalyticQuotient 123 (byte)OpCode.AnalyticQuotient, 124 (byte)OpCode.SubFunction 124 125 }; 125 126
Note: See TracChangeset
for help on using the changeset viewer.