# HG changeset patch # User Tuomo Valkonen # Date 1616469968 18000 # Node ID 90f92ee9cb818213000c55d35fa60bc295f7ca4e # Parent da6c7475dd0e69ab31bfc45068e2b4c1e40ab129 Add basic Func to DifferentiableFN diff -r da6c7475dd0e -r 90f92ee9cb81 src/DifferentiableFN.jl --- a/src/DifferentiableFN.jl Sat Feb 20 19:10:50 2021 -0500 +++ b/src/DifferentiableFN.jl Mon Mar 22 22:26:08 2021 -0500 @@ -2,14 +2,16 @@ using ..LinOps -export DiffF, +export Func, + DiffF, value, differential, adjoint_differential -abstract type DiffF{X,Y,T} end +abstract type Func{X,Y} end +abstract type DiffF{X,Y,T} <: Func{X, Y} end -function value(f :: D, x :: X) :: Y where {X, Y, T <: LinOp{X,Y}, D <: DiffF{X,Y,T}} +function value(f :: F, x :: X) :: Y where {X, Y, F <: Func{X,Y}} @error "`value` unimplemented" end