AutoDiffAttribute.ReturnArraysInArguments Property

Gets or sets whether supported non-scalar derivative result buffers are supplied as caller arguments rather than only returned.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.10.0
C#
public bool ReturnArraysInArguments { get; set; }

Property Value

Boolean

Remarks

A caller-provided derivative-output array must not alias primal input storage whose values are needed by the differentiated computation, or another simultaneously writable output buffer, unless that aliasing pattern is explicitly documented as supported. The source generator does not insert runtime alias checks; violating this precondition is outside the supported contract.

See Also