Free cookie consent management tool by TermsFeed Policy Generator

source: branches/ExportSymbolicDataAnalysisSolutions/HeuristicLab.ExtLibs/HeuristicLab.AutoDiff/1.0/AutoDiff-1.0/Compiled/UnaryFunc.cs @ 10355

Last change on this file since 10355 was 8703, checked in by gkronber, 12 years ago

#1960 added HL wrapper plugin for AutoDiff

File size: 589 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5
6namespace AutoDiff.Compiled
7{
8    class UnaryFunc : TapeElement
9    {
10        public int Arg;
11        public readonly Func<double, double> Eval;
12        public readonly Func<double, double> Diff;
13
14        public UnaryFunc(Func<double, double> eval, Func<double, double> diff)
15        {
16            this.Eval = eval;
17            this.Diff = diff;
18        }
19
20        public override void Accept(ITapeVisitor visitor)
21        {
22            visitor.Visit(this);
23        }
24    }
25}
Note: See TracBrowser for help on using the repository browser.