Type Traits

Many of the DiffEqBase abstract types have associated traits. These can be used to check compatibility and apply separate code paths. For example, a parameter estimation algorithm can set the default for using autodifferentiation by checking if the algorithm is compatible with autodifferentiation.

Below are the abstract types along with the associated trait functions. These are listed as:


where f is the trait function and x is the any type which subtypes the abstract type.


  • isinplace : Returns true if the problem uses in-place functions


  • is_diagonal_noise : Returns true if the noise is diagonal.


  • isautodifferentiable : Returns true if the algorithm is autodifferentiable.