Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/18/17 01:15:25 (7 years ago)
Author:
pkimmesw
Message:

#2665 BenchmarkSuite, all examples, partially tested, VectorExpressions added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/SwapExpressions.cs

    r14834 r14875  
    8383    }
    8484  }
     85
     86  [PushExpression(StackTypes.FloatVector, "FLOAT[].SWAP")]
     87  public class FloatVectorSwapExpression : SwapExpression<List<double>> {
     88    public override bool Eval(IInternalPushInterpreter interpreter) {
     89      return Eval(interpreter.FloatVectorStack);
     90    }
     91  }
     92
     93  [PushExpression(StackTypes.BooleanVector, "BOOLEAN[].SWAP")]
     94  public class BooleanVectorSwapExpression : SwapExpression<List<bool>> {
     95    public override bool Eval(IInternalPushInterpreter interpreter) {
     96      return Eval(interpreter.BooleanVectorStack);
     97    }
     98  }
     99
     100  [PushExpression(StackTypes.StringVector, "STRING[].SWAP")]
     101  public class StringVectorSwapExpression : SwapExpression<List<string>> {
     102    public override bool Eval(IInternalPushInterpreter interpreter) {
     103      return Eval(interpreter.StringVectorStack);
     104    }
     105  }
    85106}
Note: See TracChangeset for help on using the changeset viewer.