Array Slice<T> Constructor
Definition
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Array | Constructs a new array stride with zero offset and unit stride. |
Array | Constructs a new array slice. |
Array | Constructs a new array slice with unit stride. |
Array | Constructs a new array slice. |
Array | Constructs a new array. |
ArraySlice<T>(T[])
ArraySlice<T>(Int32)
Remarks
Use this constructor to create an array slice that wraps a standard .NET array of the specified length. The offset is zero and the stride is 1.
ArraySlice<T>(T[], Int32)
public ArraySlice(
T[] values,
int offset
)
Parameters
Remarks
The values array is re-used. Modifying elements in the array slice will modify the elements in the original array. Conversely, if elements in the original array that correspond to elements in the array slice are modified, the elements of the array slice are modified as well.
ArraySlice<T>(Int32, Boolean)
public ArraySlice(
int length,
bool initializeToZero = true
)
Parameters
Remarks
Use this constructor to create an array slice that wraps a standard .NET array of the specified length. The offset is zero and the stride is 1.
ArraySlice<T>(T[], Int32, Int32)
public ArraySlice(
T[] values,
int offset,
int stride
)
Parameters
Remarks
The values array is re-used. Modifying elements in the array slice will modify the elements in the original array. Conversely, if elements in the original array that correspond to elements in the array slice are modified, the elements of the array slice are modified as well.