Very thin wrapper structure around a jagged array just to provided number of rows and columns along with the array itself. The spine array is oriented vertically, i.e. the rows protruding to the right from the spine array. Access to the underlying array is done by array[row][column].
Constructor | Description | ||
Full Usage:
MatrixWrapperStructForTopSpineJaggedArray(array, rows, cols)
Parameters:
'T[][]
-
The array to wrap.
rows : int
-
Number of rows.
cols : int
-
Number of columns.
|
Initializes a new instance of the MatrixWrapperStructForLeftSpineJaggedArray struct by wrapping the provided array.
|
||
Full Usage:
MatrixWrapperStructForTopSpineJaggedArray(rows, cols)
Parameters:
int
-
The number of rows.
cols : int
-
The number of columns.
|
Initializes a new instance of the MatrixWrapperStructForLeftSpineJaggedArray struct and creates the jagged matrix array. This array is a jagged array structure where the spine array is located at the top of the matrix, and the columns 'are hanging down' from this spine array. Access to elements of the underlying array is done by array[col][row], i.e. with col and row exchanged.
|
Instance member | Description |
Full Usage:
this.Array
|
Gets the underlying array. Access to elements is done using Array[column][row], i.e. with exchanged column and row. |
Full Usage:
this.ColumnCount
Modifiers: abstract |
Gets the number of columns of the matrix. |
Full Usage:
this.[arg1, arg2]
Parameters:
int
Returns: int
Modifiers: abstract |
|
Full Usage:
this.RowCount
Modifiers: abstract |
Gets the number of rows of the matrix. |