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 RealMatrix | |
| public void | addToEntry(int
Row index of the entry to be modified. row, int Column index of the entry to be modified. column, double value to add to the matrix entry. increment)Adds (in place) the specified value to the specified entry of
|
| public RealMatrix | |
| 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, double[][] The 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 void | copySubMatrix(int[]
Array of row indices. selectedRows, int[] Array of column indices. selectedColumns, double[][] The 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 RealMatrix | Returns: a new matrix of the same type as the instancethe number of rows in the new matrix rowDimension, int the number of columns in the new matrix columnDimension)Create a new RealMatrix of the same type as the instance with the supplied row and column dimensions. |
| public double[] | Returns: the array of entries in the column.Column to be fetched. column)Get the entries at the given column index as an array. |
| public RealMatrix | Returns: column Matrix.Column to be fetched. column)Get the entries at the given column index as a column matrix. |
| public RealVector | Returns: a column vector.Column to be fetched. column)Get the entries at the given column index as a vector. |
| public double[][] | |
| public double | Returns: the matrix entry at(row, column).Row index of entry to be fetched. row, int Column index of entry to be fetched. column)Get the entry in the specified row and column. |
| public double | |
| public double | |
| public double[] | Returns: the array of entries in the row.Row to be fetched. row)Get the entries at the given row index. |
| public RealMatrix | Returns: row Matrix.Row to be fetched. row)Get the entries at the given row index as a row matrix. |
| public RealVector | Returns: a row vector.Row to be fetched. row)Returns the entries in row number |
| public RealMatrix | Returns: The subMatrix 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)Gets a submatrix. |
| public RealMatrix | Returns: The subMatrix containing the data in the specified rows and columnsArray of row indices. selectedRows, int[] Array of column indices. selectedColumns)Gets a submatrix. |
| public double | |
| public RealMatrix | Returns: this * mmatrix to postmultiply by m)Returns the result of postmultiplying |
| public void | multiplyEntry(int
Row index of the entry to be modified. row, int Column index of the entry to be modified. column, double Multiplication factor for the matrix entry. factor)Multiplies (in place) the specified entry of |
| public double[] | Returns: this * vthe vector to operate on v)Returns the result of multiplying this by the vector |
| public RealVector | Returns: this * vthe vector to operate on v)Returns the result of multiplying this by the vector |
| public RealMatrix | Returns: this^praise p)this to power pReturns the result of multiplying |
| public RealMatrix | Returns: m * thismatrix to premultiply by m)Returns the result of premultiplying |
| public double[] | Returns: v * thisthe row vector to premultiply by v)Returns the (row) vector result of premultiplying this by the vector |
| public RealVector | Returns: v * thisthe row vector to premultiply by v)Returns the (row) vector result of premultiplying this by the vector |
| public RealMatrix | Returns: d + thisvalue to be added to each entry d)Returns the result of adding |
| public RealMatrix | Returns: d * thisvalue to multiply all entries by d)Returns the result of multiplying each entry of |
| public void | setColumn(int
Column to be set. column, double[] Column array to be copied (must have the same number of
rows as the instance). array)Sets the specified |
| public void | setColumnMatrix(int
Column to be set. column, RealMatrix Column matrix to be copied (must have one column and the
same number of rows as the instance). matrix)Sets the specified |
| public void | setColumnVector(int
Column to be set. column, RealVector column vector to be copied (must have the same number of
rows as the instance). vector)Sets the specified |
| public void | setEntry(int
Row index of entry to be set. row, int Column index of entry to be set. column, double the new value of the entry. value)Set the entry in the specified row and column. |
| public void | setRow(int
Row to be set. row, double[] Row matrix to be copied (must have the same number of
columns as the instance) array)Sets the specified |
| public void | setRowMatrix(int
Row to be set. row, RealMatrix Row matrix to be copied (must have one row and the same
number of columns as the instance). matrix)Sets the specified |
| public void | setRowVector(int
Row to be set. row, RealVector row vector to be copied (must have the same number of
column as the instance). vector)Sets the specified |
| public void | setSubMatrix(double[][]
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 RealMatrix | |
| public RealMatrix | |
| public double | Returns: the value returned byRealMatrixChangingVisitor#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 double | Returns: the value returned byRealMatrixPreservingVisitor#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 double | Returns: the value returned byRealMatrixChangingVisitor#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 double | Returns: the value returned byRealMatrixPreservingVisitor#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 double | Returns: the value returned byRealMatrixChangingVisitor#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 double | Returns: the value returned byRealMatrixPreservingVisitor#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 double | Returns: the value returned byRealMatrixChangingVisitor#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 double | Returns: the value returned byRealMatrixPreservingVisitor#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 double | Returns: the value returned byRealMatrixChangingVisitor#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 double | Returns: the value returned byRealMatrixPreservingVisitor#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 double | Returns: the value returned byRealMatrixChangingVisitor#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 double | Returns: the value returned byRealMatrixPreservingVisitor#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. |