IStorageSlice<T, TSelf>.Create Method

Definition

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

Overload List

Create(T[]) Constructs a new storage slice from an array.
Create(Int32, Boolean) Constructs a new storage slice and optionally initializes the elements.

Create(T[])

Constructs a new storage slice from an array.
C#
TSelf Create(
	T[] values
)

Parameters

values  T[]
The array used to store the slice.

Return Value

TSelf
A new storage slice.

Create(Int32, Boolean)

Constructs a new storage slice and optionally initializes the elements.
C#
TSelf Create(
	int length,
	bool initializeToZero
)

Parameters

length  Int32
The length of the new slice.
initializeToZero  Boolean
Specifies whether the elements should be initialized to the type's zero value.

Return Value

TSelf
A new storage slice.

See Also