using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AutoDiff.Compiled { class UnaryFunc : TapeElement { public int Arg; public readonly Func Eval; public readonly Func Diff; public UnaryFunc(Func eval, Func diff) { this.Eval = eval; this.Diff = diff; } public override void Accept(ITapeVisitor visitor) { visitor.Visit(this); } } }