Matrix element indexing is 0-based -- e.g., getEntry(0, 0)
returns the element in the first row, first column of the matrix.
| Modifier and Type | Method and Description |
|---|---|
| public FieldMatrix | |
| public void | addToEntry(int
Row location of entry to be set. row, int Column location of entry to be set. column, T Value to add to the current matrix entry in
increment)(row, column).Change an entry in the specified row and column. |
| public FieldMatrix | |
| public void | copySubMatrix(int
Initial row index. startRow, int Final row index (inclusive). endRow, int Initial column index. startColumn, int Final column index (inclusive). endColumn, T[][] The array where the submatrix data should be copied
(if larger than rows/columns counts, only the upper-left part will be modified). destination)Copy a submatrix. |
| public void | copySubMatrix(int[]
Array of row indices. selectedRows, int[] Array of column indices. selectedColumns, T[][] Arrays where the submatrix data should be copied
(if larger than rows/columns counts, only the upper-left part will be used) destination)Copy a submatrix. |
| public FieldMatrix | Returns: a new matrix of the same type as the instancethe number of rows in the new matrix rowDimension, final int the number of columns in the new matrix columnDimension)Create a new FieldMatrix<t> of the same type as the instance with the supplied row and column dimensions. |
| public T[] | Returns: array of entries in the columnthe column to be fetched column)Get the entries in column number |
| public FieldMatrix | Returns: a column matrix.Column to be fetched. column)Get the entries in column number |
| public FieldVector | Returns: a column vector.Column to be fetched. column)Returns the entries in column number |
| public T[][] | Returns: a 2-dimensional array of entries.Returns matrix entries as a two-dimensional array. |
| public T | Returns: matrix entry in row,columnrow location of entry to be fetched row, int column location of entry to be fetched column)Returns the entry in the specified row and column. |
| public Field | Returns: the type of field elements of the matrix.Get the type of field elements of the matrix. |
| public T[] | Returns: array of entries in the row.Row to be fetched. row)Get the entries in row number |
| public FieldMatrix | Returns: a row matrix.Row to be fetched. row)Get the entries in row number |
| public FieldVector | Returns: a row vector.Row to be fetched row)Get the entries in row number |
| public FieldMatrix | Returns: the matrix containing the data of the specified rows and columns.Initial row index startRow, int Final row index (inclusive) endRow, int Initial column index startColumn, int Final column index (inclusive) endColumn)Get a submatrix. |
| public FieldMatrix | Returns: the matrix containing the data in the specified rows and columns.Array of row indices. selectedRows, int[] Array of column indices. selectedColumns)Get a submatrix. |
| public T | |
| public FieldMatrix | Returns: this * m.Matrix to postmultiply by. m)Postmultiply this matrix by |
| public void | multiplyEntry(int
Row location of entry to be set. row, int Column location of entry to be set. column, T Multiplication factor for the current matrix entry
in factor)(row,column)Change an entry in the specified row and column. |
| public T[] | Returns: this * vthe vector to operate on v)Returns the result of multiplying this by the vector |
| public FieldVector | Returns: this * vthe vector to operate on v)Returns the result of multiplying this by the vector |
| public FieldMatrix | Returns: this^praise this to power p p)Returns the result multiplying this with itself |
| public FieldMatrix | Returns: m * this.Matrix to premultiply by. m)Premultiply this matrix by |
| public T[] | Returns: v * thisthe row vector to premultiply by v)Returns the (row) vector result of premultiplying this by the vector
|
| public FieldVector | Returns: v * thisthe row vector to premultiply by v)Returns the (row) vector result of premultiplying this by the vector
|
| public FieldMatrix | Returns: d + this.Value to be added to each entry. d)Increment each entry of this matrix. |
| public FieldMatrix | |
| public void | setColumn(int
the column to be set column, T[] column array (must have the same number of rows as the instance) array)Set the entries in column number |
| public void | setColumnMatrix(int
Column to be set. column, FieldMatrix<T> column matrix (must have one column and the same
number of rows as the instance). matrix)Set the entries in column number |
| public void | setColumnVector(int
Column to be set. column, FieldVector<T> Column vector (must have the same number of rows
as the instance). vector)Set the entries in column number |
| public void | setEntry(int
row location of entry to be set row, int column location of entry to be set column, T matrix entry to be set in row,column value)Set the entry in the specified row and column. |
| public void | setRow(int
Row to be set. row, T[] Row matrix (must have the same number of columns as
the instance). array)Set the entries in row number |
| public void | setRowMatrix(int
Row to be set. row, FieldMatrix<T> Row matrix (must have one row and the same number
of columns as the instance). matrix)Set the entries in row number |
| public void | setRowVector(int
Row to be set. row, FieldVector<T> row vector (must have the same number of columns
as the instance). vector)Set the entries in row number |
| public void | setSubMatrix(T[][]
Array containing the submatrix replacement data. subMatrix, int Row coordinate of the top-left element to be replaced. row, int Column coordinate of the top-left element to be replaced. column)Replace the submatrix starting at |
| public FieldMatrix | |
| public FieldMatrix | |
| public T | Returns: the value returned byFieldMatrixChangingVisitor#end() at the end
of the walkvisitor used to process all matrix entries visitor)Visit (and possibly change) all matrix entries in column order. |
| public T | Returns: the value returned byFieldMatrixPreservingVisitor#end() at the end
of the walkvisitor used to process all matrix entries visitor)Visit (but don't change) all matrix entries in column order. |
| public T | Returns: the value returned byFieldMatrixChangingVisitor#end() at the end
of the walkvisitor used to process all matrix entries visitor, int Initial row index startRow, int Final row index (inclusive) endRow, int Initial column index startColumn, int Final column index endColumn)Visit (and possibly change) some matrix entries in column order. |
| public T | Returns: the value returned byFieldMatrixPreservingVisitor#end() at the end
of the walkvisitor used to process all matrix entries visitor, int Initial row index startRow, int Final row index (inclusive) endRow, int Initial column index startColumn, int Final column index endColumn)Visit (but don't change) some matrix entries in column order. |
| public T | Returns: the value returned byFieldMatrixChangingVisitor#end() at the end
of the walkvisitor used to process all matrix entries visitor)Visit (and possibly change) all matrix entries using the fastest possible order. |
| public T | Returns: the value returned byFieldMatrixPreservingVisitor#end() at the end
of the walkvisitor used to process all matrix entries visitor)Visit (but don't change) all matrix entries using the fastest possible order. |
| public T | Returns: the value returned byFieldMatrixChangingVisitor#end() at the end
of the walkvisitor used to process all matrix entries visitor, int Initial row index startRow, int Final row index (inclusive) endRow, int Initial column index startColumn, int Final column index (inclusive) endColumn)Visit (and possibly change) some matrix entries using the fastest possible order. |
| public T | Returns: the value returned byFieldMatrixPreservingVisitor#end() at the end
of the walkvisitor used to process all matrix entries visitor, int Initial row index startRow, int Final row index (inclusive) endRow, int Initial column index startColumn, int Final column index (inclusive) endColumn)Visit (but don't change) some matrix entries using the fastest possible order. |
| public T | Returns: the value returned byFieldMatrixChangingVisitor#end() at the end
of the walkvisitor used to process all matrix entries visitor)Visit (and possibly change) all matrix entries in row order. |
| public T | Returns: the value returned byFieldMatrixPreservingVisitor#end() at the end
of the walkvisitor used to process all matrix entries visitor)Visit (but don't change) all matrix entries in row order. |
| public T | Returns: the value returned byFieldMatrixChangingVisitor#end() at the end
of the walkvisitor used to process all matrix entries visitor, int Initial row index startRow, int Final row index (inclusive) endRow, int Initial column index startColumn, int Final column index endColumn)Visit (and possibly change) some matrix entries in row order. |
| public T | Returns: the value returned byFieldMatrixPreservingVisitor#end() at the end
of the walkvisitor used to process all matrix entries visitor, int Initial row index startRow, int Final row index (inclusive) endRow, int Initial column index startColumn, int Final column index endColumn)Visit (but don't change) some matrix entries in row order. |