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.
Constructor | Description |
Full Usage:
JaggedArrayMatrix(rows, cols)
Parameters:
int
-
Number of rows of the matrix.
cols : int
-
Number of cols of the matrix.
|
Sets up an empty matrix with dimension(row,cols).
|
Full Usage:
JaggedArrayMatrix(x)
Parameters:
float[][]
-
Jagged double array containing the matrix data. The data are used directly (no copy)!
|
Uses an already existing array for the matrix data.
|
Full Usage:
JaggedArrayMatrix(x, rows, cols)
Parameters:
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.
|
Instance member | Description |
Full Usage:
this.AppendBottom
Parameters:
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.
|
Full Usage:
this.Array
Returns: float[][]
|
Provides direct access to the underlying jagged array. JaggedArrayMath can then be used to speed up computations.
|
Full Usage:
this.Clear
|
Clears the content of the matrix. |
Full Usage:
this.ColumnCount
Returns: int
Modifiers: abstract |
Number of columns of the matrix.
|
Full Usage:
this.[arg1, arg2]
Parameters:
int
Returns: int
Modifiers: abstract |
Element accessor. Accesses the element [row, col] of the matrix.
|
Full Usage:
this.RowCount
Returns: int
Modifiers: abstract |
Number of Rows of the matrix.
|
Full Usage:
this.SetDimension
Parameters:
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.
|
Full Usage:
this.ToString
Returns: string
Modifiers: abstract |
Represents the content of the matrix as a string.
|