IStorage Slice<T, TSelf>.Create Method
Definition
Namespace: Numerics.NET.Collections
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.1.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.1.3
Overload List
Create(T[]) | Constructs a new storage slice from an array. |
Create( | Constructs a new storage slice and optionally initializes the elements. |
Create(T[])
Constructs a new storage slice from an array.
TSelf Create(
T[] values
)
Parameters
- values T[]
- The array used to store the slice.
Return Value
TSelfA new storage slice.
Create(Int32, Boolean)
Constructs a new storage slice and optionally initializes the elements.
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
TSelfA new storage slice.