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

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

Introduction

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

The text is from its open source code.

Implementation

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

Method

RealMatrixadd(RealMatrix m)
Returns the sum of this and m .
voidaddToEntry(int row, int column, double increment)
Adds (in place) the specified value to the specified entry of this matrix.
RealMatrixcopy()
Returns a (deep) copy of this.
voidcopySubMatrix(int[] selectedRows, int[] selectedColumns, double[][] destination)
Copy a submatrix.
voidcopySubMatrix(int startRow, int endRow, int startColumn, int endColumn, double[][] destination)
Copy a submatrix.
RealMatrixcreateMatrix(int rowDimension, int columnDimension)
Create a new RealMatrix of the same type as the instance with the supplied row and column dimensions.
ClassgetClass()
Returns the runtime class of this Object .
double[]getColumn(int column)
Get the entries at the given column index as an array.
intgetColumnDimension()
Returns the number of columns in the matrix.
RealMatrixgetColumnMatrix(int column)
Get the entries at the given column index as a column matrix.
RealVectorgetColumnVector(int column)
Get the entries at the given column index as a vector.
double[][]getData()
Returns matrix entries as a two-dimensional array.
doublegetEntry(int row, int column)
Get 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)
Get the entries at the given row index.
intgetRowDimension()
Returns the number of rows in the matrix.
RealMatrixgetRowMatrix(int row)
Get the entries at the given row index as a row 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.
RealMatrixgetSubMatrix(int[] selectedRows, int[] selectedColumns)
Gets a submatrix.
doublegetTrace()
Returns the trace of the matrix (the sum of the elements on the main diagonal).
booleanisSquare()
Is this a square matrix?
RealMatrixmultiply(RealMatrix m)
Returns the result of postmultiplying this by m .
voidmultiplyEntry(int row, int column, double factor)
Multiplies (in place) the specified entry of this matrix by the specified value.
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 .
RealMatrixpower(final int p)
Returns the result of multiplying this with itself p times.
RealMatrixpreMultiply(RealMatrix m)
Returns the result of 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 .
RealMatrixscalarAdd(double d)
Returns the result of adding d to each entry of this .
RealMatrixscalarMultiply(double d)
Returns the result of multiplying each entry of this by d .
voidsetColumn(int column, double[] array)
Sets the specified column of this matrix to the entries of the specified array .
voidsetColumnMatrix(int column, RealMatrix matrix)
Sets the specified column of this matrix to the entries of the specified column matrix .
voidsetColumnVector(int column, RealVector vector)
Sets the specified column of this matrix to the entries of the specified vector .
voidsetEntry(int row, int column, double value)
Set the entry in the specified row and column.
voidsetRow(int row, double[] array)
Sets the specified row of this matrix to the entries of the specified array .
voidsetRowMatrix(int row, RealMatrix matrix)
Sets the specified row of this matrix to the entries of the specified row matrix .
voidsetRowVector(int row, RealVector vector)
Sets the specified row of this matrix to the entries of the specified vector .
voidsetSubMatrix(double[][] subMatrix, int row, int column)
Replace the submatrix starting at row, column using data in the input subMatrix array.
RealMatrixsubtract(RealMatrix m)
Returns this minus m .
StringtoString()
Returns a string representation of the object.
RealMatrixtranspose()
Returns the transpose of this matrix.
doublewalkInColumnOrder(RealMatrixChangingVisitor visitor)
Visit (and possibly change) all matrix entries in column order.
doublewalkInColumnOrder(RealMatrixPreservingVisitor visitor)
Visit (but don't change) all matrix entries in column order.
doublewalkInOptimizedOrder(RealMatrixChangingVisitor visitor, int startRow, int endRow, int startColumn, int endColumn)
Visit (and possibly change) some matrix entries using the fastest possible order.
doublewalkInOptimizedOrder(RealMatrixPreservingVisitor visitor, int startRow, int endRow, int startColumn, int endColumn)
Visit (but don't change) some matrix entries using the fastest possible order.
doublewalkInOptimizedOrder(RealMatrixChangingVisitor visitor)
Visit (and possibly change) all matrix entries using the fastest possible order.
doublewalkInOptimizedOrder(RealMatrixPreservingVisitor visitor)
Visit (but don't change) all matrix entries using the fastest possible order.
doublewalkInRowOrder(RealMatrixChangingVisitor visitor)
Visit (and possibly change) all matrix entries in row order.
doublewalkInRowOrder(RealMatrixPreservingVisitor visitor)
Visit (but don't change) all matrix entries in row order.