MemorySlice<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 slice starting at the specified index.
From(Int32, Int32) Returns an array slice starting at the specified index.

From(Int32)

Returns an array slice starting at the specified index.
C#
public MemorySlice<T> From(
	int index
)

Parameters

index  Int32
The zero-based index of the first element in the new array slice.

Return Value

MemorySlice<T>
An array slice whose first element is at position index.

Implements

IStorageSlice<T, TSelf>.From(Int32)

From(Int32, Int32)

Returns an array slice starting at the specified index.
C#
public MemorySlice<T> From(
	int index,
	int stride
)

Parameters

index  Int32
The zero-based index of the first element in the new array slice.
stride  Int32
The stride between elements.

Return Value

MemorySlice<T>
An array slice whose first element is at position index.

Implements

IStorageSlice<T, TSelf>.From(Int32, Int32)

See Also