Array1D<T>.From Method

Definition

Namespace: Numerics.NET.Collections
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2

Overload List

From(Int32) Returns an array that starts at the specified index in the current array.
From(Int32, Int32) Returns an array slice that starts at the specified index in the current array.

From(Int32)

Returns an array that starts at the specified index in the current array.
C#
public Array1D<T> From(
	int index
)

Parameters

index  Int32
The index of the first element of the new array.

Return Value

Array1D<T>
An array that starts at position index in the current array.

From(Int32, Int32)

Returns an array slice that starts at the specified index in the current array.
C#
public ArraySlice<T> From(
	int index,
	int stride
)

Parameters

index  Int32
The index of the first element of the new array.
stride  Int32
The stride of the array slice.

Return Value

ArraySlice<T>
An array slice that starts at position index in the current array with stride stride.

See Also