Uses of Interface
org.apache.commons.math.linear.RealMatrix
Packages that use RealMatrix
Package
Description
Linear algebra support.
This package provides classes to solve Ordinary Differential Equations problems.
This package provides common interfaces for the optimization algorithms
provided in sub-packages.
Random number and random data generators.
Correlations/Covariance computations.
Generic univariate summary statistic objects.
Summary statistics based on moments.
Statistical routines involving multivariate data.
-
Uses of RealMatrix in org.apache.commons.math.linear
Subinterfaces of RealMatrix in org.apache.commons.math.linearModifier and TypeInterfaceDescriptioninterface
Marker interface forRealMatrix
implementations that require sparse backing storageClasses in org.apache.commons.math.linear that implement RealMatrixModifier and TypeClassDescriptionclass
Basic implementation of RealMatrix methods regardless of the underlying storage.class
Implementation of RealMatrix using a double[][] array to store entries and LU decomposition to support linear system solution and inverse.class
Cache-friendly implementation of RealMatrix using a flat arrays to store square blocks of the matrix.class
Sparse matrix implementation based on an open addressed map.class
Deprecated.Methods in org.apache.commons.math.linear that return RealMatrixModifier and TypeMethodDescriptionAbstractRealMatrix.add
(RealMatrix m) Compute the sum of this and m.Array2DRowRealMatrix.add
(RealMatrix m) Compute the sum of this and m.RealMatrix.add
(RealMatrix m) Compute the sum of this and m.RealMatrixImpl.add
(RealMatrix m) Deprecated.Compute the sum of this and m.abstract RealMatrix
AbstractRealMatrix.copy()
Returns a (deep) copy of this.Array2DRowRealMatrix.copy()
Returns a (deep) copy of this.RealMatrix.copy()
Returns a (deep) copy of this.RealMatrixImpl.copy()
Deprecated.Returns a (deep) copy of this.static RealMatrix
MatrixUtils.createColumnRealMatrix
(double[] columnData) Creates a columnRealMatrix
using the data from the input array.abstract RealMatrix
AbstractRealMatrix.createMatrix
(int rowDimension, int columnDimension) Create a new RealMatrix of the same type as the instance with the supplied row and column dimensions.Array2DRowRealMatrix.createMatrix
(int rowDimension, int columnDimension) Create a new RealMatrix of the same type as the instance with the supplied row and column dimensions.RealMatrix.createMatrix
(int rowDimension, int columnDimension) Create a new RealMatrix of the same type as the instance with the supplied row and column dimensions.RealMatrixImpl.createMatrix
(int rowDimension, int columnDimension) Deprecated.Create a new RealMatrix of the same type as the instance with the supplied row and column dimensions.static RealMatrix
MatrixUtils.createRealDiagonalMatrix
(double[] diagonal) Returns a diagonal matrix with specified elements.static RealMatrix
MatrixUtils.createRealIdentityMatrix
(int dimension) Returnsdimension x dimension
identity matrix.static RealMatrix
MatrixUtils.createRealMatrix
(double[][] data) Returns aRealMatrix
whose entries are the the values in the the input array.static RealMatrix
MatrixUtils.createRealMatrix
(int rows, int columns) Returns aRealMatrix
with specified dimensions.static RealMatrix
MatrixUtils.createRowRealMatrix
(double[] rowData) Creates a rowRealMatrix
using the data from the input array.AbstractRealMatrix.getColumnMatrix
(int column) Returns the entries in column numbercolumn
as a column matrix.RealMatrix.getColumnMatrix
(int column) Returns the entries in column numbercolumn
as a column matrix.SingularValueDecomposition.getCovariance
(double minSingularValue) Returns the n × n covariance matrix.SingularValueDecompositionImpl.getCovariance
(double minSingularValue) Returns the n × n covariance matrix.EigenDecomposition.getD()
Returns the block diagonal matrix D of the decomposition.EigenDecompositionImpl.getD()
Returns the block diagonal matrix D of the decomposition.QRDecomposition.getH()
Returns the Householder reflector vectors.QRDecompositionImpl.getH()
Returns the Householder reflector vectors.DecompositionSolver.getInverse()
Get the inverse (or pseudo-inverse) of the decomposed matrix.CholeskyDecomposition.getL()
Returns the matrix L of the decomposition.CholeskyDecompositionImpl.getL()
Returns the matrix L of the decomposition.LUDecomposition.getL()
Returns the matrix L of the decomposition.LUDecompositionImpl.getL()
Returns the matrix L of the decomposition.CholeskyDecomposition.getLT()
Returns the transpose of the matrix L of the decomposition.CholeskyDecompositionImpl.getLT()
Returns the transpose of the matrix L of the decomposition.LUDecomposition.getP()
Returns the P rows permutation matrix.LUDecompositionImpl.getP()
Returns the P rows permutation matrix.QRDecomposition.getQ()
Returns the matrix Q of the decomposition.QRDecompositionImpl.getQ()
Returns the matrix Q of the decomposition.QRDecomposition.getQT()
Returns the transpose of the matrix Q of the decomposition.QRDecompositionImpl.getQT()
Returns the transpose of the matrix Q of the decomposition.QRDecomposition.getR()
Returns the matrix R of the decomposition.QRDecompositionImpl.getR()
Returns the matrix R of the decomposition.AbstractRealMatrix.getRowMatrix
(int row) Returns the entries in row numberrow
as a row matrix.RealMatrix.getRowMatrix
(int row) Returns the entries in row numberrow
as a row matrix.SingularValueDecomposition.getS()
Returns the diagonal matrix Σ of the decomposition.SingularValueDecompositionImpl.getS()
Returns the diagonal matrix Σ of the decomposition.AbstractRealMatrix.getSubMatrix
(int[] selectedRows, int[] selectedColumns) Gets a submatrix.AbstractRealMatrix.getSubMatrix
(int startRow, int endRow, int startColumn, int endColumn) Gets a submatrix.RealMatrix.getSubMatrix
(int[] selectedRows, int[] selectedColumns) Gets a submatrix.RealMatrix.getSubMatrix
(int startRow, int endRow, int startColumn, int endColumn) Gets a submatrix.LUDecomposition.getU()
Returns the matrix U of the decomposition.LUDecompositionImpl.getU()
Returns the matrix U of the decomposition.SingularValueDecomposition.getU()
Returns the matrix U of the decomposition.SingularValueDecompositionImpl.getU()
Returns the matrix U of the decomposition.SingularValueDecomposition.getUT()
Returns the transpose of the matrix U of the decomposition.SingularValueDecompositionImpl.getUT()
Returns the transpose of the matrix U of the decomposition.EigenDecomposition.getV()
Returns the matrix V of the decomposition.EigenDecompositionImpl.getV()
Returns the matrix V of the decomposition.SingularValueDecomposition.getV()
Returns the matrix V of the decomposition.SingularValueDecompositionImpl.getV()
Returns the matrix V of the decomposition.EigenDecomposition.getVT()
Returns the transpose of the matrix V of the decomposition.EigenDecompositionImpl.getVT()
Returns the transpose of the matrix V of the decomposition.SingularValueDecomposition.getVT()
Returns the transpose of the matrix V of the decomposition.SingularValueDecompositionImpl.getVT()
Returns the transpose of the matrix V of the decomposition.AbstractRealMatrix.inverse()
Deprecated.RealMatrix.inverse()
Deprecated.as of release 2.0, replaced bynew LUDecompositionImpl(m)
.getSolver()
.getInverse()
AbstractRealMatrix.multiply
(RealMatrix m) Returns the result of postmultiplying this by m.Array2DRowRealMatrix.multiply
(RealMatrix m) Returns the result of postmultiplying this by m.OpenMapRealMatrix.multiply
(RealMatrix m) Returns the result of postmultiplying this by m.RealMatrix.multiply
(RealMatrix m) Returns the result of postmultiplying this by m.RealMatrixImpl.multiply
(RealMatrix m) Deprecated.Returns the result of postmultiplying this by m.AbstractRealVector.outerProduct
(double[] v) Compute the outer product.AbstractRealVector.outerProduct
(RealVector v) Compute the outer product.ArrayRealVector.outerProduct
(double[] v) Compute the outer product.ArrayRealVector.outerProduct
(ArrayRealVector v) Compute the outer product.ArrayRealVector.outerProduct
(RealVector v) Compute the outer product.OpenMapRealVector.outerProduct
(double[] v) Compute the outer product.RealVector.outerProduct
(double[] v) Compute the outer product.RealVector.outerProduct
(RealVector v) Compute the outer product.AbstractRealMatrix.preMultiply
(RealMatrix m) Returns the result premultiplying this bym
.RealMatrix.preMultiply
(RealMatrix m) Returns the result premultiplying this bym
.AbstractRealMatrix.scalarAdd
(double d) Returns the result of adding d to each entry of this.RealMatrix.scalarAdd
(double d) Returns the result of adding d to each entry of this.AbstractRealMatrix.scalarMultiply
(double d) Returns the result multiplying each entry of this by d.BlockRealMatrix.scalarMultiply
(double d) Returns the result multiplying each entry of this by d.RealMatrix.scalarMultiply
(double d) Returns the result multiplying each entry of this by d.AbstractRealMatrix.solve
(RealMatrix b) Deprecated.DecompositionSolver.solve
(RealMatrix b) Solve the linear equation A × X = B for matrices A.RealMatrix.solve
(RealMatrix b) Deprecated.as of release 2.0, replaced byDecompositionSolver.solve(RealMatrix)
AbstractRealMatrix.subtract
(RealMatrix m) Compute this minus m.Array2DRowRealMatrix.subtract
(RealMatrix m) Compute this minus m.RealMatrix.subtract
(RealMatrix m) Compute this minus m.RealMatrixImpl.subtract
(RealMatrix m) Deprecated.Compute this minus m.AbstractRealMatrix.transpose()
Returns the transpose of this matrix.RealMatrix.transpose()
Returns the transpose of this matrix.Methods in org.apache.commons.math.linear with parameters of type RealMatrixModifier and TypeMethodDescriptionAbstractRealMatrix.add
(RealMatrix m) Compute the sum of this and m.Array2DRowRealMatrix.add
(RealMatrix m) Compute the sum of this and m.BlockRealMatrix.add
(RealMatrix m) Compute the sum of this and m.OpenMapRealMatrix.add
(RealMatrix m) Compute the sum of this and m.RealMatrix.add
(RealMatrix m) Compute the sum of this and m.RealMatrixImpl.add
(RealMatrix m) Deprecated.Compute the sum of this and m.AbstractRealMatrix.multiply
(RealMatrix m) Returns the result of postmultiplying this by m.Array2DRowRealMatrix.multiply
(RealMatrix m) Returns the result of postmultiplying this by m.BlockRealMatrix.multiply
(RealMatrix m) Returns the result of postmultiplying this by m.OpenMapRealMatrix.multiply
(RealMatrix m) Returns the result of postmultiplying this by m.RealMatrix.multiply
(RealMatrix m) Returns the result of postmultiplying this by m.RealMatrixImpl.multiply
(RealMatrix m) Deprecated.Returns the result of postmultiplying this by m.AbstractRealMatrix.preMultiply
(RealMatrix m) Returns the result premultiplying this bym
.RealMatrix.preMultiply
(RealMatrix m) Returns the result premultiplying this bym
.static void
MatrixUtils.serializeRealMatrix
(RealMatrix matrix, ObjectOutputStream oos) Serialize aRealMatrix
.void
AbstractRealMatrix.setColumnMatrix
(int column, RealMatrix matrix) Sets the entries in column numbercolumn
as a column matrix.void
BlockRealMatrix.setColumnMatrix
(int column, RealMatrix matrix) Sets the entries in column numbercolumn
as a column matrix.void
RealMatrix.setColumnMatrix
(int column, RealMatrix matrix) Sets the entries in column numbercolumn
as a column matrix.void
AbstractRealMatrix.setRowMatrix
(int row, RealMatrix matrix) Sets the entries in row numberrow
as a row matrix.void
BlockRealMatrix.setRowMatrix
(int row, RealMatrix matrix) Sets the entries in row numberrow
as a row matrix.void
RealMatrix.setRowMatrix
(int row, RealMatrix matrix) Sets the entries in row numberrow
as a row matrix.AbstractRealMatrix.solve
(RealMatrix b) Deprecated.DecompositionSolver.solve
(RealMatrix b) Solve the linear equation A × X = B for matrices A.RealMatrix.solve
(RealMatrix b) Deprecated.as of release 2.0, replaced byDecompositionSolver.solve(RealMatrix)
AbstractRealMatrix.subtract
(RealMatrix m) Compute this minus m.Array2DRowRealMatrix.subtract
(RealMatrix m) Compute this minus m.BlockRealMatrix.subtract
(RealMatrix m) Compute this minus m.OpenMapRealMatrix.subtract
(RealMatrix m) Compute this minus m.RealMatrix.subtract
(RealMatrix m) Compute this minus m.RealMatrixImpl.subtract
(RealMatrix m) Deprecated.Compute this minus m.Constructors in org.apache.commons.math.linear with parameters of type RealMatrixModifierConstructorDescriptionCholeskyDecompositionImpl
(RealMatrix matrix) Calculates the Cholesky decomposition of the given matrix.CholeskyDecompositionImpl
(RealMatrix matrix, double relativeSymmetryThreshold, double absolutePositivityThreshold) Calculates the Cholesky decomposition of the given matrix.EigenDecompositionImpl
(RealMatrix matrix, double splitTolerance) Calculates the eigen decomposition of the given symmetric matrix.LUDecompositionImpl
(RealMatrix matrix) Calculates the LU-decomposition of the given matrix.LUDecompositionImpl
(RealMatrix matrix, double singularityThreshold) Calculates the LU-decomposition of the given matrix.QRDecompositionImpl
(RealMatrix matrix) Calculates the QR-decomposition of the given matrix.Calculates the compact Singular Value Decomposition of the given matrix. -
Uses of RealMatrix in org.apache.commons.math.ode
Methods in org.apache.commons.math.ode that return RealMatrixModifier and TypeMethodDescriptionMultistepIntegrator.NordsieckTransformer.initializeHighOrderDerivatives
(double[] first, double[][] multistep) Initialize the high order scaled derivatives at step start. -
Uses of RealMatrix in org.apache.commons.math.optimization
Constructors in org.apache.commons.math.optimization with parameters of type RealMatrixModifierConstructorDescriptionLeastSquaresConverter
(MultivariateVectorialFunction function, double[] observations, RealMatrix scale) Build a simple converter for correlated residuals with the specific weights. -
Uses of RealMatrix in org.apache.commons.math.random
Methods in org.apache.commons.math.random that return RealMatrixModifier and TypeMethodDescriptionCorrelatedRandomVectorGenerator.getRootMatrix()
Get the root of the covariance matrix.Constructors in org.apache.commons.math.random with parameters of type RealMatrixModifierConstructorDescriptionCorrelatedRandomVectorGenerator
(double[] mean, RealMatrix covariance, double small, NormalizedRandomGenerator generator) Simple constructor.CorrelatedRandomVectorGenerator
(RealMatrix covariance, double small, NormalizedRandomGenerator generator) Simple constructor. -
Uses of RealMatrix in org.apache.commons.math.stat.correlation
Methods in org.apache.commons.math.stat.correlation that return RealMatrixModifier and TypeMethodDescriptionPearsonsCorrelation.computeCorrelationMatrix
(double[][] data) Computes the correlation matrix for the columns of the input rectangular array.PearsonsCorrelation.computeCorrelationMatrix
(RealMatrix matrix) Computes the correlation matrix for the columns of the input matrix.SpearmansCorrelation.computeCorrelationMatrix
(double[][] matrix) Computes the Spearman's rank correlation matrix for the columns of the input rectangular array.SpearmansCorrelation.computeCorrelationMatrix
(RealMatrix matrix) Computes the Spearman's rank correlation matrix for the columns of the input matrix.protected RealMatrix
Covariance.computeCovarianceMatrix
(double[][] data) Create a covariance matrix from a rectangual array whose columns represent covariates.protected RealMatrix
Covariance.computeCovarianceMatrix
(double[][] data, boolean biasCorrected) Compute a covariance matrix from a rectangular array whose columns represent covariates.protected RealMatrix
Covariance.computeCovarianceMatrix
(RealMatrix matrix) Create a covariance matrix from a matrix whose columns represent covariates.protected RealMatrix
Covariance.computeCovarianceMatrix
(RealMatrix matrix, boolean biasCorrected) Compute a covariance matrix from a matrix whose columns represent covariates.PearsonsCorrelation.covarianceToCorrelation
(RealMatrix covarianceMatrix) Derives a correlation matrix from a covariance matrix.PearsonsCorrelation.getCorrelationMatrix()
Returns the correlation matrixSpearmansCorrelation.getCorrelationMatrix()
Calculate the Spearman Rank Correlation Matrix.PearsonsCorrelation.getCorrelationPValues()
Returns a matrix of p-values associated with the (two-sided) null hypothesis that the corresponding correlation coefficient is zero.PearsonsCorrelation.getCorrelationStandardErrors()
Returns a matrix of standard errors associated with the estimates in the correlation matrix.
getCorrelationStandardErrors().getEntry(i,j)
is the standard error associated withgetCorrelationMatrix.getEntry(i,j)
Covariance.getCovarianceMatrix()
Returns the covariance matrixMethods in org.apache.commons.math.stat.correlation with parameters of type RealMatrixModifier and TypeMethodDescriptionPearsonsCorrelation.computeCorrelationMatrix
(RealMatrix matrix) Computes the correlation matrix for the columns of the input matrix.SpearmansCorrelation.computeCorrelationMatrix
(RealMatrix matrix) Computes the Spearman's rank correlation matrix for the columns of the input matrix.protected RealMatrix
Covariance.computeCovarianceMatrix
(RealMatrix matrix) Create a covariance matrix from a matrix whose columns represent covariates.protected RealMatrix
Covariance.computeCovarianceMatrix
(RealMatrix matrix, boolean biasCorrected) Compute a covariance matrix from a matrix whose columns represent covariates.PearsonsCorrelation.covarianceToCorrelation
(RealMatrix covarianceMatrix) Derives a correlation matrix from a covariance matrix.Constructors in org.apache.commons.math.stat.correlation with parameters of type RealMatrixModifierConstructorDescriptionCovariance
(RealMatrix matrix) Create a covariance matrix from a matrix whose columns represent covariates.Covariance
(RealMatrix matrix, boolean biasCorrected) Create a covariance matrix from a matrix whose columns represent covariates.PearsonsCorrelation
(RealMatrix matrix) Create a PearsonsCorrelation from a RealMatrix whose columns represent variables to be correlated.PearsonsCorrelation
(RealMatrix covarianceMatrix, int numberOfObservations) Create a PearsonsCorrelation from a covariance matrix.SpearmansCorrelation
(RealMatrix dataMatrix) Create a SpearmansCorrelation from the given data matrix.SpearmansCorrelation
(RealMatrix dataMatrix, RankingAlgorithm rankingAlgorithm) Create a SpearmansCorrelation with the given input data matrix and ranking algorithm. -
Uses of RealMatrix in org.apache.commons.math.stat.descriptive
Methods in org.apache.commons.math.stat.descriptive that return RealMatrixModifier and TypeMethodDescriptionMultivariateSummaryStatistics.getCovariance()
Returns the covariance matrix of the values that have been added.StatisticalMultivariateSummary.getCovariance()
Returns the covariance of the available values.SynchronizedMultivariateSummaryStatistics.getCovariance()
Returns the covariance matrix of the values that have been added. -
Uses of RealMatrix in org.apache.commons.math.stat.descriptive.moment
Methods in org.apache.commons.math.stat.descriptive.moment that return RealMatrix -
Uses of RealMatrix in org.apache.commons.math.stat.regression
Fields in org.apache.commons.math.stat.regression declared as RealMatrixModifier and TypeFieldDescriptionprotected RealMatrix
AbstractMultipleLinearRegression.X
X sample data.Methods in org.apache.commons.math.stat.regression that return RealMatrixModifier and TypeMethodDescriptionprotected abstract RealMatrix
AbstractMultipleLinearRegression.calculateBetaVariance()
Calculates the beta variance of multiple linear regression in matrix notation.protected RealMatrix
GLSMultipleLinearRegression.calculateBetaVariance()
Calculates the variance on the beta.protected RealMatrix
OLSMultipleLinearRegression.calculateBetaVariance()
Calculates the variance-covariance matrix of the regression parameters.OLSMultipleLinearRegression.calculateHat()
Compute the "hat" matrix.protected RealMatrix
GLSMultipleLinearRegression.getOmegaInverse()
Get the inverse of the covariance.
Array2DRowRealMatrix