Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/18/17 01:15:25 (8 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/StackdepthExpressions.cs

    r14834 r14875  
    8585    }
    8686  }
     87
     88  [PushExpression(StackTypes.FloatVector, "FLOAT[].STACKDEPTH", StackTypes.Integer)]
     89  public class FloatVectorStackdepthExpression : StackdepthExpression<List<double>> {
     90    public override bool Eval(IInternalPushInterpreter interpreter) {
     91      return Eval(interpreter.FloatVectorStack, interpreter.IntegerStack);
     92    }
     93  }
     94
     95  [PushExpression(StackTypes.BooleanVector, "BOOLEAN[].STACKDEPTH", StackTypes.Integer)]
     96  public class BooleanVectorStackdepthExpression : StackdepthExpression<List<bool>> {
     97    public override bool Eval(IInternalPushInterpreter interpreter) {
     98      return Eval(interpreter.BooleanVectorStack, interpreter.IntegerStack);
     99    }
     100  }
     101
     102  [PushExpression(StackTypes.StringVector, "STRING[].STACKDEPTH", StackTypes.Integer)]
     103  public class StringVectorStackdepthExpression : StackdepthExpression<List<string>> {
     104    public override bool Eval(IInternalPushInterpreter interpreter) {
     105      return Eval(interpreter.StringVectorStack, interpreter.IntegerStack);
     106    }
     107  }
    87108}
Note: See TracChangeset for help on using the changeset viewer.