The OpenD Programming Language

setDerivatives

Evaluates partial derivatives and function value, if any, for a user-provided set of partial derivatives. The derivative set can be defined with Derivative and Minus UDAs.

  1. void setDerivatives(D derivatives, E expression)
    void
    setDerivatives
    (
    bool strict = true
    D
    E
    )
    (
    scope ref D derivatives
    ,)
  2. template setDerivatives(D, bool strict = true)

Parameters

D

type of the requested set of partial derivatives

strict

The parameter is used when the expression can't evaluate the derivative. If true, prints error at compile-time; otherwise, the corresponding member is set to NaN.

derivatives D

a structure that holds set of partial derivatives (optional)

expression E

expression

Meta