Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/25/13 17:04:27 (11 years ago)
Author:
bburlacu
Message:

#2021:

  • Derived the LinearInstruction class from Instruction.
  • Added missing symbols to the linear interpreter
  • Changed description for the linear interpreter
  • Added more helpful exception message when a symbol is not supported.
  • Added evaluation test for the linear interpreter
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.DataAnalysis.Symbolic.LinearInterpreter/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Compiler/LinearInstruction.cs

    r9738 r9758  
    2323namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding {
    2424  // total size of this class should be small to improve cache access while executing the code
    25   public class LinearInstruction {
    26     // the tree node can hold additional data that is necessary for the execution of this instruction
    27     public ISymbolicExpressionTreeNode dynamicNode;
    28     // op code of the function that determines what operation should be executed
    29     public byte opCode;
    30     // number of arguments of the current instruction
    31     public byte nArguments;
    32     // an optional object value (addresses for calls, argument index for arguments)
    33     public object iArg0;
    34 
     25  public class LinearInstruction : Instruction {
    3526    public double value;
    36 
    37     public int childIndex;
     27    public byte childIndex;
    3828  }
    3929}
Note: See TracChangeset for help on using the changeset viewer.