Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/01/20 09:19:42 (3 years ago)
Author:
pfleck
Message:

#3040 Worked in DiffSharp for constant-opt.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/SymbolicDataAnalysisExpressionTreeVectorInterpreter.cs

    r17726 r17786  
    469469                (v1, v2) => v1 - v2);
    470470            }
     471            if (currentInstr.nArguments == 1)
     472              cur = FunctionApply(cur,
     473                s => -s,
     474                v => -v);
    471475            TraceEvaluation(currentInstr, cur);
    472476            return cur;
     
    497501                (v1, v2) => v1 / v2);
    498502            }
     503            if (currentInstr.nArguments == 1)
     504              cur = FunctionApply(cur,
     505                s => 1 / s,
     506                v => 1 / v);
    499507            TraceEvaluation(currentInstr, cur);
    500508            return cur;
Note: See TracChangeset for help on using the changeset viewer.