MatrixWrapperStructForTopSpineJaggedArray<'T> Type

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].

Constructors

Constructor Description

MatrixWrapperStructForTopSpineJaggedArray(array, rows, cols)

Full Usage: MatrixWrapperStructForTopSpineJaggedArray(array, rows, cols)

Parameters:
    array : '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.

array : 'T[][]

The array to wrap.

rows : int

Number of rows.

cols : int

Number of columns.

MatrixWrapperStructForTopSpineJaggedArray(rows, cols)

Full Usage: MatrixWrapperStructForTopSpineJaggedArray(rows, cols)

Parameters:
    rows : 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.

rows : int

The number of rows.

cols : int

The number of columns.

ArgumentOutOfRangeException rows - Number of rows has to be >=0 or cols - Number of cols has to be >=0

Instance members

Instance member Description

this.Array

Full Usage: this.Array

Gets the underlying array. Access to elements is done using Array[column][row], i.e. with exchanged column and row.

this.ColumnCount

Full Usage: this.ColumnCount

Modifiers: abstract

Gets the number of columns of the matrix.

this.[arg1, arg2]

Full Usage: this.[arg1, arg2]

Parameters:
    arg0 : int

Returns: int
Modifiers: abstract

arg0 : int
Returns: int

this.RowCount

Full Usage: this.RowCount

Modifiers: abstract

Gets the number of rows of the matrix.