Array 2D<T> Constructor
Definition
Namespace: Numerics.NET.Collections
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
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.
public Array2D(
int rowCount,
int columnCount
)
Parameters
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.
public Array2D(
T[] values,
int offset,
int leadingDimension
)
Parameters
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.
public Array2D(
int rowCount,
int columnCount,
bool initializeToZero
)
Parameters
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.