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/PopExpressions.cs

    r14834 r14875  
    7878    }
    7979  }
     80
     81
     82  [PushExpression(StackTypes.FloatVector, "FLOAT[].POP")]
     83  public class FloatVectorPopExpression : PopExpression<List<double>> {
     84    public override bool Eval(IInternalPushInterpreter interpreter) {
     85      return Eval(interpreter.FloatVectorStack);
     86    }
     87  }
     88
     89
     90  [PushExpression(StackTypes.BooleanVector, "BOOLEAN[].POP")]
     91  public class BooleanVectorPopExpression : PopExpression<List<bool>> {
     92    public override bool Eval(IInternalPushInterpreter interpreter) {
     93      return Eval(interpreter.BooleanVectorStack);
     94    }
     95  }
     96
     97
     98  [PushExpression(StackTypes.StringVector, "STRING[].POP")]
     99  public class StringVectorPopExpression : PopExpression<List<string>> {
     100    public override bool Eval(IInternalPushInterpreter interpreter) {
     101      return Eval(interpreter.StringVectorStack);
     102    }
     103  }
    80104}
Note: See TracChangeset for help on using the changeset viewer.