Memory2D<T>.Resize Method

Returns a new array with the specified size and leading dimension. Elements are copied to the new array.

Definition

Namespace: Numerics.NET.Collections
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
public Memory2D<T> Resize(
	int newSize,
	int newLeadingDimension
)

Parameters

newSize  Int32
The number of elements in the new array.
newLeadingDimension  Int32
The leading dimension of the new array.

Return Value

Memory2D<T>
An array of size newSize with leading dimension newLeadingDimension.

Implements

IStorage2D<T, TStorage2D>.Resize(Int32, Int32)

See Also