-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
68 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
abstract type Extras end | ||
|
||
""" | ||
PushforwardExtras | ||
Abstract type for additional information needed by [`pushforward`](@ref) and its variants. | ||
""" | ||
abstract type PushforwardExtras <: Extras end | ||
struct NoPushforwardExtras <: PushforwardExtras end | ||
|
||
""" | ||
PullbackExtras | ||
Abstract type for additional information needed by [`pullback`](@ref) and its variants. | ||
""" | ||
abstract type PullbackExtras <: Extras end | ||
struct NoPullbackExtras <: PullbackExtras end | ||
|
||
""" | ||
DerivativeExtras | ||
Abstract type for additional information needed by [`derivative`](@ref) and its variants. | ||
""" | ||
abstract type DerivativeExtras <: Extras end | ||
struct NoDerivativeExtras <: DerivativeExtras end | ||
|
||
""" | ||
GradientExtras | ||
Abstract type for additional information needed by [`gradient`](@ref) and its variants. | ||
""" | ||
abstract type GradientExtras <: Extras end | ||
struct NoGradientExtras <: GradientExtras end | ||
|
||
""" | ||
JacobianExtras | ||
Abstract type for additional information needed by [`jacobian`](@ref) and its variants. | ||
""" | ||
abstract type JacobianExtras <: Extras end | ||
struct NoJacobianExtras <: JacobianExtras end | ||
|
||
""" | ||
HVPExtras | ||
Abstract type for additional information needed by [`hvp`](@ref) and its variants. | ||
""" | ||
abstract type HVPExtras <: Extras end | ||
struct NoHVPExtras <: HVPExtras end | ||
|
||
""" | ||
HessianExtras | ||
Abstract type for additional information needed by [`hessian`](@ref) and its variants. | ||
""" | ||
abstract type HessianExtras <: Extras end | ||
struct NoHessianExtras <: HessianExtras end | ||
|
||
""" | ||
SecondDerivativeExtras | ||
Abstract type for additional information needed by [`second_derivative`](@ref) and its variants. | ||
""" | ||
abstract type SecondDerivativeExtras <: Extras end | ||
struct NoSecondDerivativeExtras <: SecondDerivativeExtras end |