Skip to content

Commit

Permalink
Update GradientTapeWithLinkedList.cs
Browse files Browse the repository at this point in the history
Implement new interface members.
  • Loading branch information
HamletTanyavong committed Oct 2, 2024
1 parent 99132fa commit 546902a
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@

using System.Runtime.CompilerServices;
using Mathematics.NET.AutoDiff;
using Mathematics.NET.DifferentialGeometry;
using Mathematics.NET.DifferentialGeometry.Abstractions;
using Mathematics.NET.LinearAlgebra;
using Microsoft.Extensions.Logging;

namespace Mathematics.NET.Benchmarks.Implementations.AutoDiff;
Expand Down Expand Up @@ -570,4 +573,15 @@ public Variable<T> CustomOperation(Variable<T> x, Variable<T> y, Func<T, T, T> f
_nodes.AddLast(new GradientNode<T>(dfx(x.Value, y.Value), dfy(x.Value, y.Value), x._index, y._index));
return new(_nodes.Count - 1, f(x.Value, y.Value));
}

//
// DifGeo
//

public AutoDiffTensor2<T, U> CreateAutoDiffTensor<U>(in Vector2<T> x) where U : IIndex => throw new NotImplementedException();
public AutoDiffTensor2<T, U> CreateAutoDiffTensor<U>(in T x0, in T x1) where U : IIndex => throw new NotImplementedException();
public AutoDiffTensor3<T, U> CreateAutoDiffTensor<U>(in Vector3<T> x) where U : IIndex => throw new NotImplementedException();
public AutoDiffTensor3<T, U> CreateAutoDiffTensor<U>(in T x0, in T x1, in T x2) where U : IIndex => throw new NotImplementedException();
public AutoDiffTensor4<T, U> CreateAutoDiffTensor<U>(in Vector4<T> x) where U : IIndex => throw new NotImplementedException();
public AutoDiffTensor4<T, U> CreateAutoDiffTensor<U>(in T x0, in T x1, in T x2, in T x3) where U : IIndex => throw new NotImplementedException();
}

0 comments on commit 546902a

Please sign in to comment.