Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Slang Documentation
Slang Documentation
Back to top
View this page

diffPair¶

Description¶

Constructs a DifferentialPair value from a primal value and a differential value.

Signature¶

DifferentialPair<T> diffPair<T>(
    T primal,
    T.Differential diff)
    where T : IDifferentiable;

DifferentialPair<T> diffPair<T>(T primal)
    where T : IDifferentiable;

Generic Parameters¶

T: IDifferentiable¶

Parameters¶

primal : T¶

diff : T.Differential¶

On this page
  • diffPair
    • Description
    • Signature
    • Generic Parameters
      • T: IDifferentiable
    • Parameters
      • primal : T
      • diff : T.Differential