Table of Contents

Enum ArrayConversionMethod

Namespace
FinanceSharp
Assembly
FinanceSharp.dll

Provides options of how to convert a DoubleArray to an NDArray.

public enum ArrayConversionMethod
Extension Methods

Fields

Reinterpret = 0

Reinterprets the entire array to be as TDestStruct. Similar to casting address pointer. returned array's Length will be total-bytes/sizeof(TDestStruct)

total_bytes % sizeof(TDestStruct) must be 0.

Cast = 1

Casts the entire array to TDestStruct by reading propertiesPerItem properties. See remarks.

propertiesPerItem describes how many doubles to copy to and per TDestStruct.
If -1 is specified then sizeof(TDestStruct)/sizeof(double) will be used.

If TDestStruct has 2 double fields and propertiesPerItem specified is 1 then all new TDestStruct will have only their first field written to and rest are zero'ed.