Array2D<T> Constructor

Definition

Namespace: Extreme.Collections
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Array2D<T>(Int32, Int32) Constructs a new array.
Array2D<T>(T[], Int32, Int32) Constructs a new array.
Array2D<T>(Int32, Int32, Boolean) Constructs a new array.

Array2D<T>(Int32, Int32)

Constructs a new array.
C#
public Array2D(
	int rowCount,
	int columnCount
)

Parameters

rowCount  Int32
The number of rows.
columnCount  Int32
The number of columns.

Remarks

Use this constructor to create an array that can hold the specified number of rows and columns of data. All values are stored contiguously in column-major order.

Array2D<T>(T[], Int32, Int32)

Constructs a new array.
C#
public Array2D(
	T[] values,
	int offset,
	int leadingDimension
)

Parameters

values  T[]
The storage array.
offset  Int32
The offset of the first element in the storage array.
leadingDimension  Int32
The number of elements between the start of successive columns.

Remarks

The values array is re-used. Modifying elements in the 2D array will modify the elements in the original array. Conversely, if elements in the original array that correspond to elements in the 2D array are modified, the elements of the 2D array are modified as well.

Array2D<T>(Int32, Int32, Boolean)

Constructs a new array.
C#
public Array2D(
	int rowCount,
	int columnCount,
	bool initializeToZero
)

Parameters

rowCount  Int32
The number of rows.
columnCount  Int32
The number of columns.
initializeToZero  Boolean
Indicates whether the elements should be explicitly set to zero.

Remarks

Use this constructor to create an array that can hold the specified number of rows and columns of data. All values are stored contiguously in column-major order.

See Also