JaggedArrayMatrix Type

JaggedArrayMatrix is a matrix implementation that is relatively easy to extend to the bottom, i.e. to append rows. It is horizontal oriented, i.e. the storage is as a number of horizontal vectors. Furthermore, as a compromise, it provides fully access to its underlying jagged array.

Constructors

Constructor Description

JaggedArrayMatrix(rows, cols)

Full Usage: JaggedArrayMatrix(rows, cols)

Parameters:
    rows : int - Number of rows of the matrix.
    cols : int - Number of cols of the matrix.

Sets up an empty matrix with dimension(row,cols).

rows : int

Number of rows of the matrix.

cols : int

Number of cols of the matrix.

JaggedArrayMatrix(x)

Full Usage: JaggedArrayMatrix(x)

Parameters:
    x : float[][] - Jagged double array containing the matrix data. The data are used directly (no copy)!

Uses an already existing array for the matrix data.

x : float[][]

Jagged double array containing the matrix data. The data are used directly (no copy)!

JaggedArrayMatrix(x, rows, cols)

Full Usage: JaggedArrayMatrix(x, rows, cols)

Parameters:
    x : float[][] - Jagged double array containing the matrix data. The data are used directly (no copy)!
    rows : int - Number of (used) rows of the matrix.
    cols : int - Number of columns of the matrix.

Uses an already existing array for the matrix data.

x : float[][]

Jagged double array containing the matrix data. The data are used directly (no copy)!

rows : int

Number of (used) rows of the matrix.

cols : int

Number of columns of the matrix.

Instance members

Instance member Description

this.AppendBottom

Full Usage: this.AppendBottom

Parameters:
    a : IROMatrix<float> - Matrix to append to the bottom of this matrix.

Modifiers: abstract

Appends the matrix a at the bottom of this matrix. Either this matrix must be empty (dimensions (0,0)) or the matrix to append must have the same number of columns than this matrix.

a : IROMatrix<float>

Matrix to append to the bottom of this matrix.

this.Array

Full Usage: this.Array

Returns: float[][]

Provides direct access to the underlying jagged array. JaggedArrayMath can then be used to speed up computations.

Returns: float[][]

this.Clear

Full Usage: this.Clear

Clears the content of the matrix.

this.ColumnCount

Full Usage: this.ColumnCount

Returns: int
Modifiers: abstract

Number of columns of the matrix.

Returns: int

this.[arg1, arg2]

Full Usage: this.[arg1, arg2]

Parameters:
    arg0 : int

Returns: int
Modifiers: abstract

Element accessor. Accesses the element [row, col] of the matrix.

arg0 : int
Returns: int

this.RowCount

Full Usage: this.RowCount

Returns: int
Modifiers: abstract

Number of Rows of the matrix.

Returns: int

this.SetDimension

Full Usage: this.SetDimension

Parameters:
    rows : int - Number of rows of the matrix.
    cols : int - Number of columns of the matrix.

Set up the dimensions of the matrix. Discards the old content and reset the matrix with the new dimensions. All elements become zero.

rows : int

Number of rows of the matrix.

cols : int

Number of columns of the matrix.

this.ToString

Full Usage: this.ToString

Returns: string
Modifiers: abstract

Represents the content of the matrix as a string.

Returns: string