Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/01/17 09:28:34 (7 years ago)
Author:
pkimmesw
Message:

#2665 Fixed Benchmark Problem Definition, Converted LoopExpressions to stateless expressions, Added several unit test to ensure funcionality, Fixed UI bugs

File:
1 edited

Legend:

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

    r14952 r15017  
    1717    protected VectorFirstExpression(bool deserializing) : base(deserializing) { }
    1818
    19     protected bool IsNoop(IPushStack<List<T>> vectorStack) {
     19    protected bool IsNoop(IPushStack<IReadOnlyList<T>> vectorStack) {
    2020      return vectorStack.IsEmpty || vectorStack.Top.Count == 0;
    2121    }
    2222
    23     protected void Eval(IPushStack<List<T>> vectorStack, IPushStack<T> literalStack) {
     23    protected void Eval(IPushStack<IReadOnlyList<T>> vectorStack, IPushStack<T> literalStack) {
    2424      var vector = vectorStack.Pop();
    2525      literalStack.Push(vector[0]);
Note: See TracChangeset for help on using the changeset viewer.