Java org.apache.commons.math.linear RealMatrix fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.math.linear RealMatrix fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.math.linear RealMatrix.

The text is from its open source code.

Implementation

org.apache.commons.math.linear.RealMatrix has the following implementations.
Click this link to see all its implementation.

Method

RealMatrixadd(RealMatrix m)
Compute the sum of this and m.
voidaddToEntry(int row, int column, double increment)
Change an entry in the specified row and column.
RealMatrixcopy()
Returns a (deep) copy of this.
double[]getColumn(int column)
Returns the entries in column number col as an array.
intgetColumnDimension()
Returns the number of columns in the matrix.
RealMatrixgetColumnMatrix(int column)
Returns the entries in column number column as a column matrix.
RealVectorgetColumnVector(int column)
Returns the entries in column number column as a vector.
double[][]getData()
Returns matrix entries as a two-dimensional array.
doublegetEntry(int row, int column)
Returns the entry in the specified row and column.
doublegetFrobeniusNorm()
Returns the Frobenius norm of the matrix.
doublegetNorm()
Returns the maximum absolute row sum norm of the matrix.
double[]getRow(int row)
Returns the entries in row number row as an array.
intgetRowDimension()
Returns the number of rows in the matrix.
RealVectorgetRowVector(int row)
Returns the entries in row number row as a vector.
RealMatrixgetSubMatrix(int startRow, int endRow, int startColumn, int endColumn)
Gets a submatrix.
doublegetTrace()
Returns the trace of the matrix (the sum of the elements on the main diagonal).
RealMatrixinverse()
Returns the inverse of this matrix.
booleanisSingular()
Is this a singular matrix?
RealMatrixmultiply(RealMatrix m)
Returns the result of postmultiplying this by m.
voidmultiplyEntry(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.
RealVectoroperate(RealVector v)
Returns the result of multiplying this by the vector v.
RealMatrixpreMultiply(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.
RealVectorpreMultiply(RealVector v)
Returns the (row) vector result of premultiplying this by the vector v.
RealMatrixscalarMultiply(double d)
Returns the result multiplying each entry of this by d.
voidsetColumn(int column, double[] array)
Sets the entries in column number column as a column matrix.
voidsetColumnMatrix(int column, RealMatrix matrix)
Sets the entries in column number column as a column matrix.
voidsetColumnVector(int column, RealVector vector)
Sets the entries in column number column as a vector.
voidsetEntry(int row, int column, double value)
Set the entry in the specified row and column.
voidsetRow(int row, double[] array)
Sets the entries in row number row as a row matrix.
voidsetRowMatrix(int row, RealMatrix matrix)
Sets the entries in row number row as a row matrix.
voidsetRowVector(int row, RealVector vector)
Sets the entries in row number row as a vector.
voidsetSubMatrix(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.
RealMatrixsolve(RealMatrix b)
Returns a matrix of (column) solution vectors for linear systems with coefficient matrix = this and constant vectors = columns of b.
RealMatrixsubtract(RealMatrix m)
Compute this minus m.
RealMatrixtranspose()
Returns the transpose of this matrix.