Auto Diff Function Attribute Class
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.10.0
public sealed class AutoDiffFunctionAttribute : AttributeRemarks
Compiler-owned identifiers are available in AutoDiffFunctions. Libraries may define their own identifiers using a unique namespace-like prefix.
This declaration supplies function identity. AutoDiffAttribute requests derivative generation, and DerivativeAttribute declares derivative semantics. Semantic identity does not itself assert purity, absence of memory effects, or non-throwing behavior.
The source generator discovers implementations in the current compilation and referenced portable AutoDiff packages before derivative planning. Eligible nested derivative rules can then be shared across implementations with the same identifier by generalizing their numerical element type. Ordinary source calls retain their exact CLR identity.
All implementations must have the same semantic arity, including the receiver for instance methods. Calls to annotated implementations inside nested derivative bodies use semantic identity; contextual instantiation selects the unique implementation with the exact concrete argument and result types. Missing or ambiguous matches, and selections inaccessible from the generated host, are errors. Referenced derivative bodies are loaded only when selected.
Constructors
| Auto | Initializes a new instance of the AutoDiffFunctionAttribute class. |
Properties
| Identifier | Gets the semantic AutoDiff function identifier implemented by the annotated method. |
| Type | When implemented in a derived class, gets a unique identifier for this Attribute. (Inherited from Attribute) |
Methods
| Equals | Returns a value that indicates whether this instance is equal to a specified object. (Inherited from Attribute) |
| Get | Returns the hash code for this instance. (Inherited from Attribute) |
| Get | Gets the Type of the current instance. (Inherited from Object) |
| IsDefault | When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (Inherited from Attribute) |
| Match | When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from Attribute) |
| ToString | Returns a string that represents the current object. (Inherited from Object) |