AutoDiffAttribute.AllowNullArrayArguments Property

Gets or sets whether caller-provided derivative output arguments may be null and allocated by generated code on supported paths.

Definition

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

Property Value

Boolean

Remarks

If true and an output argument is null, the generated method will allocate a new array and return it. If a non-null array is provided, that array is used for the result and also returned.

Any non-null writable result array supplied by the caller is subject to the no-alias precondition documented by ReturnArraysInArguments: no runtime alias check is inserted.

See Also