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

    r14834 r14875  
    8080    }
    8181  }
     82
     83  [PushExpression(StackTypes.FloatVector, "FLOAT[].FLUSH")]
     84  public class FloatVectorFlushExpression : FlushExpression<List<double>> {
     85    public override bool Eval(IInternalPushInterpreter interpreter) {
     86      return Eval(interpreter.FloatVectorStack);
     87    }
     88  }
     89
     90  [PushExpression(StackTypes.BooleanVector, "BOOLEAN[].FLUSH")]
     91  public class BooleanVectorFlushExpression : FlushExpression<List<bool>> {
     92    public override bool Eval(IInternalPushInterpreter interpreter) {
     93      return Eval(interpreter.BooleanVectorStack);
     94    }
     95  }
     96
     97  [PushExpression(StackTypes.StringVector, "STRING[].FLUSH")]
     98  public class StringVectorFlushExpression : FlushExpression<List<string>> {
     99    public override bool Eval(IInternalPushInterpreter interpreter) {
     100      return Eval(interpreter.StringVectorStack);
     101    }
     102  }
    82103}
Note: See TracChangeset for help on using the changeset viewer.