Example usage for Java org.apache.commons.math.linear RealMatrix fields, constructors, methods, implement or subclass
The text is from its open source code.
RealMatrix | add(RealMatrix m) Compute the sum of this and m. |
void | addToEntry(int row, int column, double increment) Change an entry in the specified row and column. |
RealMatrix | copy() Returns a (deep) copy of this. |
double[] | getColumn(int column) Returns the entries in column number col as an array. |
int | getColumnDimension() Returns the number of columns in the matrix. |
RealMatrix | getColumnMatrix(int column) Returns the entries in column number column as a column matrix. |
RealVector | getColumnVector(int column) Returns the entries in column number column as a vector. |
double[][] | getData() Returns matrix entries as a two-dimensional array. |
double | getEntry(int row, int column) Returns the entry in the specified row and column. |
double | getFrobeniusNorm() Returns the Frobenius norm of the matrix. |
double | getNorm() Returns the maximum absolute row sum norm of the matrix. |
double[] | getRow(int row) Returns the entries in row number row as an array. |
int | getRowDimension() Returns the number of rows in the matrix. |
RealVector | getRowVector(int row) Returns the entries in row number row as a vector. |
RealMatrix | getSubMatrix(int startRow, int endRow, int startColumn, int endColumn) Gets a submatrix. |
double | getTrace() Returns the trace of the matrix (the sum of the elements on the main diagonal). |
RealMatrix | inverse() Returns the inverse of this matrix. |
boolean | isSingular() Is this a singular matrix? |
RealMatrix | multiply(RealMatrix m) Returns the result of postmultiplying this by m. |
void | multiplyEntry(int row, int column, double factor) Change an entry in the specified row and column. |
double[] | operate(double[] v) Returns the result of multiplying this by the vector v . |
RealVector | operate(RealVector v) Returns the result of multiplying this by the vector v . |
RealMatrix | preMultiply(RealMatrix m) Returns the result premultiplying this by m . |
double[] | preMultiply(double[] v) Returns the (row) vector result of premultiplying this by the vector v . |
RealVector | preMultiply(RealVector v) Returns the (row) vector result of premultiplying this by the vector v . |
RealMatrix | scalarMultiply(double d) Returns the result multiplying each entry of this by d. |
void | setColumn(int column, double[] array) Sets the entries in column number column as a column matrix. |
void | setColumnMatrix(int column, RealMatrix matrix) Sets the entries in column number column as a column matrix. |
void | setColumnVector(int column, RealVector vector) Sets the entries in column number column as a vector. |
void | setEntry(int row, int column, double value) Set the entry in the specified row and column. |
void | setRow(int row, double[] array) Sets the entries in row number row as a row matrix. |
void | setRowMatrix(int row, RealMatrix matrix) Sets the entries in row number row as a row matrix. |
void | setRowVector(int row, RealVector vector) Sets the entries in row number row as a vector. |
void | setSubMatrix(double[][] subMatrix, int row, int column) Replace the submatrix starting at row, column using data in the input subMatrix array. |
double[] | solve(double[] b) Returns the solution vector for a linear system with coefficient matrix = this and constant vector = b . |
RealMatrix | solve(RealMatrix b) Returns a matrix of (column) solution vectors for linear systems with coefficient matrix = this and constant vectors = columns of b . |
RealMatrix | subtract(RealMatrix m) Compute this minus m. |
RealMatrix | transpose() Returns the transpose of this matrix. |