Uses of Class
org.hipparchus.linear.RealVector
Package
Description
Linear algebra support.
Convenience routines and common data structures used throughout the Hipparchus library.
-
Uses of RealVector in org.hipparchus.linear
Modifier and TypeClassDescriptionclass
This class implements theRealVector
interface with a double array.class
This class implements theRealVector
interface with aOpenIntToDoubleHashMap
backing store.class
Marker class for RealVectors that require sparse backing storageModifier and TypeMethodDescriptionOpenMapRealVector.add
(RealVector v) Compute the sum of this vector andv
.RealVector.add
(RealVector v) Compute the sum of this vector andv
.ArrayRealVector.append
(double in) Construct a new vector by appending a double to this vector.ArrayRealVector.append
(RealVector v) Construct a new vector by appending a vector to this vector.abstract RealVector
RealVector.append
(double d) Construct a new vector by appending a double to this vector.abstract RealVector
RealVector.append
(RealVector v) Construct a new vector by appending a vector to this vector.RealVector.combine
(double a, double b, RealVector y) Returns a new vector representinga * this + b * y
, the linear combination ofthis
andy
.RealVector.combineToSelf
(double a, double b, RealVector y) Updatesthis
with the linear combination ofthis
andy
.abstract RealVector
RealVector.copy()
Returns a (deep) copy of this vector.static RealVector
MatrixUtils.createRealVector
(double[] data) Creates aRealVector
using the data from the input array.static RealVector
MatrixUtils.createRealVector
(int dimension) Creates aRealVector
with specified dimensions.abstract RealVector
RealVector.ebeDivide
(RealVector v) Element-by-element division.abstract RealVector
RealVector.ebeMultiply
(RealVector v) Element-by-element multiplication.AbstractRealMatrix.getColumnVector
(int column) Get the entries at the given column index as a vector.BlockRealMatrix.getColumnVector
(int column) Get the entries at the given column index as a vector.RealMatrix.getColumnVector
(int column) Get the entries at the given column index as a vector.EigenDecompositionSymmetric.getEigenvector
(int i) Gets a copy of the ith eigenvector of the original matrix.DefaultIterativeLinearSolverEvent.getResidual()
Returns the residual.IterativeLinearSolverEvent.getResidual()
Returns the residual.DefaultIterativeLinearSolverEvent.getRightHandSideVector()
Returns the current right-hand side of the linear system to be solved.abstract RealVector
IterativeLinearSolverEvent.getRightHandSideVector()
Returns the current right-hand side of the linear system to be solved.AbstractRealMatrix.getRowVector
(int row) Returns the entries in row numberrow
as a vector.BlockRealMatrix.getRowVector
(int row) Returns the entries in row numberrow
as a vector.RealMatrix.getRowVector
(int row) Returns the entries in row numberrow
as a vector.DefaultIterativeLinearSolverEvent.getSolution()
Returns the current estimate of the solution to the linear system to be solved.abstract RealVector
IterativeLinearSolverEvent.getSolution()
Returns the current estimate of the solution to the linear system to be solved.ArrayRealVector.getSubVector
(int index, int n) Get a subvector from consecutive elements.abstract RealVector
RealVector.getSubVector
(int index, int n) Get a subvector from consecutive elements.RealVector.map
(UnivariateFunction function) Acts as if implemented as:RealVector.mapAdd
(double d) Add a value to each entry.ArrayRealVector.mapAddToSelf
(double d) Add a value to each entry.RealVector.mapAddToSelf
(double d) Add a value to each entry.RealVector.mapDivide
(double d) Divide each entry by the argument.ArrayRealVector.mapDivideToSelf
(double d) Divide each entry by the argument.RealVector.mapDivideToSelf
(double d) Divide each entry by the argument.RealVector.mapMultiply
(double d) Multiply each entry by the argument.ArrayRealVector.mapMultiplyToSelf
(double d) Multiply each entry.RealVector.mapMultiplyToSelf
(double d) Multiply each entry.RealVector.mapSubtract
(double d) Subtract a value from each entry.ArrayRealVector.mapSubtractToSelf
(double d) Subtract a value from each entry.RealVector.mapSubtractToSelf
(double d) Subtract a value from each entry.RealVector.mapToSelf
(UnivariateFunction function) Acts as if it is implemented as:AbstractRealMatrix.operate
(RealVector v) Returns the result of multiplying this by the vectorv
.JacobiPreconditioner.operate
(RealVector x) Returns the result of multiplyingthis
by the vectorx
.RealLinearOperator.operate
(RealVector x) Returns the result of multiplyingthis
by the vectorx
.RealMatrix.operate
(RealVector v) Returns the result of multiplying this by the vectorv
.default RealVector
RealLinearOperator.operateTranspose
(RealVector x) Returns the result of multiplying the transpose ofthis
operator by the vectorx
(optional operation).AbstractRealMatrix.preMultiply
(RealVector v) Returns the (row) vector result of premultiplying this by the vectorv
.DiagonalMatrix.preMultiply
(RealVector v) Returns the (row) vector result of premultiplying this by the vectorv
.RealMatrix.preMultiply
(RealVector v) Returns the (row) vector result of premultiplying this by the vectorv
.RealVector.projection
(RealVector v) Find the orthogonal projection of this vector onto another vector.DecompositionSolver.solve
(RealVector b) Solve the linear equation A × X = B for matrices A.IterativeLinearSolver.solve
(RealLinearOperator a, RealVector b) Returns an estimate of the solution to the linear system A · x = b.IterativeLinearSolver.solve
(RealLinearOperator a, RealVector b, RealVector x0) Returns an estimate of the solution to the linear system A · x = b.PreconditionedIterativeLinearSolver.solve
(RealLinearOperator a, RealLinearOperator m, RealVector b) Returns an estimate of the solution to the linear system A · x = b.PreconditionedIterativeLinearSolver.solve
(RealLinearOperator a, RealLinearOperator m, RealVector b, RealVector x0) Returns an estimate of the solution to the linear system A · x = b.PreconditionedIterativeLinearSolver.solve
(RealLinearOperator a, RealVector b) Returns an estimate of the solution to the linear system A · x = b.PreconditionedIterativeLinearSolver.solve
(RealLinearOperator a, RealVector b, RealVector x0) Returns an estimate of the solution to the linear system A · x = b.SymmLQ.solve
(RealLinearOperator a, RealLinearOperator m, RealVector b) Returns an estimate of the solution to the linear system A · x = b.SymmLQ.solve
(RealLinearOperator a, RealLinearOperator m, RealVector b, boolean goodb, double shift) Returns an estimate of the solution to the linear system (A - shift · I) · x = b.SymmLQ.solve
(RealLinearOperator a, RealLinearOperator m, RealVector b, RealVector x) Returns an estimate of the solution to the linear system A · x = b.SymmLQ.solve
(RealLinearOperator a, RealVector b) Returns an estimate of the solution to the linear system A · x = b.SymmLQ.solve
(RealLinearOperator a, RealVector b, boolean goodb, double shift) Returns the solution to the system (A - shift · I) · x = b.SymmLQ.solve
(RealLinearOperator a, RealVector b, RealVector x) Returns an estimate of the solution to the linear system A · x = b.ConjugateGradient.solveInPlace
(RealLinearOperator a, RealLinearOperator m, RealVector b, RealVector x0) Returns an estimate of the solution to the linear system A · x = b.abstract RealVector
IterativeLinearSolver.solveInPlace
(RealLinearOperator a, RealVector b, RealVector x0) Returns an estimate of the solution to the linear system A · x = b.abstract RealVector
PreconditionedIterativeLinearSolver.solveInPlace
(RealLinearOperator a, RealLinearOperator m, RealVector b, RealVector x0) Returns an estimate of the solution to the linear system A · x = b.PreconditionedIterativeLinearSolver.solveInPlace
(RealLinearOperator a, RealVector b, RealVector x0) Returns an estimate of the solution to the linear system A · x = b.SymmLQ.solveInPlace
(RealLinearOperator a, RealLinearOperator m, RealVector b, RealVector x) Returns an estimate of the solution to the linear system A · x = b.SymmLQ.solveInPlace
(RealLinearOperator a, RealLinearOperator m, RealVector b, RealVector x, boolean goodb, double shift) Returns an estimate of the solution to the linear system (A - shift · I) · x = b.SymmLQ.solveInPlace
(RealLinearOperator a, RealVector b, RealVector x) Returns an estimate of the solution to the linear system A · x = b.OpenMapRealVector.subtract
(RealVector v) Subtractv
from this vector.RealVector.subtract
(RealVector v) Subtractv
from this vector.RealVector.unitVector()
Creates a unit vector pointing in the direction of this vector.static RealVector
RealVector.unmodifiableRealVector
(RealVector v) Returns an unmodifiable view of the specified vector.Modifier and TypeMethodDescriptionstatic List<RealVector>
MatrixUtils.orthonormalize
(List<RealVector> independent, double threshold, DependentVectorsHandler handler) Orthonormalize a list of vectors.Modifier and TypeMethodDescriptionArrayRealVector.add
(RealVector v) Compute the sum of this vector andv
.OpenMapRealVector.add
(RealVector v) Compute the sum of this vector andv
.RealVector.add
(RealVector v) Compute the sum of this vector andv
.ArrayRealVector.append
(RealVector v) Construct a new vector by appending a vector to this vector.OpenMapRealVector.append
(RealVector v) Construct a new vector by appending a vector to this vector.abstract RealVector
RealVector.append
(RealVector v) Construct a new vector by appending a vector to this vector.protected static void
IterativeLinearSolver.checkParameters
(RealLinearOperator a, RealVector b, RealVector x0) Performs all dimension checks on the parameters ofsolve
andsolveInPlace
, and throws an exception if one of the checks fails.protected static void
PreconditionedIterativeLinearSolver.checkParameters
(RealLinearOperator a, RealLinearOperator m, RealVector b, RealVector x0) Performs all dimension checks on the parameters ofsolve
andsolveInPlace
, and throws an exception if one of the checks fails.protected void
ArrayRealVector.checkVectorDimensions
(RealVector v) Check if instance and specified vectors have the same dimension.protected void
RealVector.checkVectorDimensions
(RealVector v) Check if instance and specified vectors have the same dimension.ArrayRealVector.combine
(double a, double b, RealVector y) Returns a new vector representinga * this + b * y
, the linear combination ofthis
andy
.RealVector.combine
(double a, double b, RealVector y) Returns a new vector representinga * this + b * y
, the linear combination ofthis
andy
.ArrayRealVector.combineToSelf
(double a, double b, RealVector y) Updatesthis
with the linear combination ofthis
andy
.RealVector.combineToSelf
(double a, double b, RealVector y) Updatesthis
with the linear combination ofthis
andy
.double
RealVector.cosine
(RealVector v) Computes the cosine of the angle between this vector and the argument.double
ArrayRealVector.dotProduct
(RealVector v) Compute the dot product of this vector withv
.double
RealVector.dotProduct
(RealVector v) Compute the dot product of this vector withv
.ArrayRealVector.ebeDivide
(RealVector v) Element-by-element division.OpenMapRealVector.ebeDivide
(RealVector v) Element-by-element division.abstract RealVector
RealVector.ebeDivide
(RealVector v) Element-by-element division.ArrayRealVector.ebeMultiply
(RealVector v) Element-by-element multiplication.OpenMapRealVector.ebeMultiply
(RealVector v) Element-by-element multiplication.abstract RealVector
RealVector.ebeMultiply
(RealVector v) Element-by-element multiplication.RealVectorFormat.format
(RealVector v) This method callsRealVectorFormat.format(RealVector,StringBuffer,FieldPosition)
.RealVectorFormat.format
(RealVector vector, StringBuffer toAppendTo, FieldPosition pos) Formats aRealVector
object to produce a string.double
ArrayRealVector.getDistance
(RealVector v) Distance between two vectors.double
OpenMapRealVector.getDistance
(RealVector v) Distance between two vectors.double
RealVector.getDistance
(RealVector v) Distance between two vectors.double
ArrayRealVector.getL1Distance
(RealVector v) Distance between two vectors.double
OpenMapRealVector.getL1Distance
(RealVector v) Distance between two vectors.double
RealVector.getL1Distance
(RealVector v) Distance between two vectors.double
ArrayRealVector.getLInfDistance
(RealVector v) Distance between two vectors.double
OpenMapRealVector.getLInfDistance
(RealVector v) Distance between two vectors.double
RealVector.getLInfDistance
(RealVector v) Distance between two vectors.AbstractRealMatrix.operate
(RealVector v) Returns the result of multiplying this by the vectorv
.JacobiPreconditioner.operate
(RealVector x) Returns the result of multiplyingthis
by the vectorx
.RealLinearOperator.operate
(RealVector x) Returns the result of multiplyingthis
by the vectorx
.RealMatrix.operate
(RealVector v) Returns the result of multiplying this by the vectorv
.default RealVector
RealLinearOperator.operateTranspose
(RealVector x) Returns the result of multiplying the transpose ofthis
operator by the vectorx
(optional operation).ArrayRealVector.outerProduct
(RealVector v) Compute the outer product.RealVector.outerProduct
(RealVector v) Compute the outer product.AbstractRealMatrix.preMultiply
(RealVector v) Returns the (row) vector result of premultiplying this by the vectorv
.DiagonalMatrix.preMultiply
(RealVector v) Returns the (row) vector result of premultiplying this by the vectorv
.RealMatrix.preMultiply
(RealVector v) Returns the (row) vector result of premultiplying this by the vectorv
.RealVector.projection
(RealVector v) Find the orthogonal projection of this vector onto another vector.void
AbstractRealMatrix.setColumnVector
(int column, RealVector vector) Sets the specifiedcolumn
ofthis
matrix to the entries of the specifiedvector
.void
BlockRealMatrix.setColumnVector
(int column, RealVector vector) Sets the specifiedcolumn
ofthis
matrix to the entries of the specifiedvector
.void
RealMatrix.setColumnVector
(int column, RealVector vector) Sets the specifiedcolumn
ofthis
matrix to the entries of the specifiedvector
.void
AbstractRealMatrix.setRowVector
(int row, RealVector vector) Sets the specifiedrow
ofthis
matrix to the entries of the specifiedvector
.void
BlockRealMatrix.setRowVector
(int row, RealVector vector) Sets the specifiedrow
ofthis
matrix to the entries of the specifiedvector
.void
RealMatrix.setRowVector
(int row, RealVector vector) Sets the specifiedrow
ofthis
matrix to the entries of the specifiedvector
.void
ArrayRealVector.setSubVector
(int index, RealVector v) Set a sequence of consecutive elements.void
OpenMapRealVector.setSubVector
(int index, RealVector v) Set a sequence of consecutive elements.abstract void
RealVector.setSubVector
(int index, RealVector v) Set a sequence of consecutive elements.DecompositionSolver.solve
(RealVector b) Solve the linear equation A × X = B for matrices A.IterativeLinearSolver.solve
(RealLinearOperator a, RealVector b) Returns an estimate of the solution to the linear system A · x = b.IterativeLinearSolver.solve
(RealLinearOperator a, RealVector b, RealVector x0) Returns an estimate of the solution to the linear system A · x = b.PreconditionedIterativeLinearSolver.solve
(RealLinearOperator a, RealLinearOperator m, RealVector b) Returns an estimate of the solution to the linear system A · x = b.PreconditionedIterativeLinearSolver.solve
(RealLinearOperator a, RealLinearOperator m, RealVector b, RealVector x0) Returns an estimate of the solution to the linear system A · x = b.PreconditionedIterativeLinearSolver.solve
(RealLinearOperator a, RealVector b) Returns an estimate of the solution to the linear system A · x = b.PreconditionedIterativeLinearSolver.solve
(RealLinearOperator a, RealVector b, RealVector x0) Returns an estimate of the solution to the linear system A · x = b.SymmLQ.solve
(RealLinearOperator a, RealLinearOperator m, RealVector b) Returns an estimate of the solution to the linear system A · x = b.SymmLQ.solve
(RealLinearOperator a, RealLinearOperator m, RealVector b, boolean goodb, double shift) Returns an estimate of the solution to the linear system (A - shift · I) · x = b.SymmLQ.solve
(RealLinearOperator a, RealLinearOperator m, RealVector b, RealVector x) Returns an estimate of the solution to the linear system A · x = b.SymmLQ.solve
(RealLinearOperator a, RealVector b) Returns an estimate of the solution to the linear system A · x = b.SymmLQ.solve
(RealLinearOperator a, RealVector b, boolean goodb, double shift) Returns the solution to the system (A - shift · I) · x = b.SymmLQ.solve
(RealLinearOperator a, RealVector b, RealVector x) Returns an estimate of the solution to the linear system A · x = b.ConjugateGradient.solveInPlace
(RealLinearOperator a, RealLinearOperator m, RealVector b, RealVector x0) Returns an estimate of the solution to the linear system A · x = b.abstract RealVector
IterativeLinearSolver.solveInPlace
(RealLinearOperator a, RealVector b, RealVector x0) Returns an estimate of the solution to the linear system A · x = b.abstract RealVector
PreconditionedIterativeLinearSolver.solveInPlace
(RealLinearOperator a, RealLinearOperator m, RealVector b, RealVector x0) Returns an estimate of the solution to the linear system A · x = b.PreconditionedIterativeLinearSolver.solveInPlace
(RealLinearOperator a, RealVector b, RealVector x0) Returns an estimate of the solution to the linear system A · x = b.SymmLQ.solveInPlace
(RealLinearOperator a, RealLinearOperator m, RealVector b, RealVector x) Returns an estimate of the solution to the linear system A · x = b.SymmLQ.solveInPlace
(RealLinearOperator a, RealLinearOperator m, RealVector b, RealVector x, boolean goodb, double shift) Returns an estimate of the solution to the linear system (A - shift · I) · x = b.SymmLQ.solveInPlace
(RealLinearOperator a, RealVector b, RealVector x) Returns an estimate of the solution to the linear system A · x = b.static void
MatrixUtils.solveLowerTriangularSystem
(RealMatrix rm, RealVector b) Solve a system of composed of a Lower Triangular MatrixRealMatrix
.static void
MatrixUtils.solveUpperTriangularSystem
(RealMatrix rm, RealVector b) Solver a system composed of an Upper Triangular MatrixRealMatrix
.ArrayRealVector.subtract
(RealVector v) Subtractv
from this vector.OpenMapRealVector.subtract
(RealVector v) Subtractv
from this vector.RealVector.subtract
(RealVector v) Subtractv
from this vector.static RealVector
RealVector.unmodifiableRealVector
(RealVector v) Returns an unmodifiable view of the specified vector.Modifier and TypeMethodDescriptionabstract int
DependentVectorsHandler.manageDependent
(int index, List<RealVector> basis) Manage a dependent vector.static List<RealVector>
MatrixUtils.orthonormalize
(List<RealVector> independent, double threshold, DependentVectorsHandler handler) Orthonormalize a list of vectors.ModifierConstructorDescriptionArrayRealVector
(ArrayRealVector v1, RealVector v2) Construct a vector by appending one vector to another vector.Construct a vector from another vector, using a deep copy.ArrayRealVector
(RealVector v1, ArrayRealVector v2) Construct a vector by appending one vector to another vector.DefaultIterativeLinearSolverEvent
(Object source, int iterations, RealVector x, RealVector b, double rnorm) Creates a new instance of this class.DefaultIterativeLinearSolverEvent
(Object source, int iterations, RealVector x, RealVector b, RealVector r, double rnorm) Creates a new instance of this class.Generic copy constructor. -
Uses of RealVector in org.hipparchus.util
Modifier and TypeMethodDescriptiondefault RealVector
UnscentedTransformProvider.getUnscentedMeanState
(RealVector[] sigmaPoints) Computes a weighted mean state from a given set of sigma points.JulierUnscentedTransform.getWc()
Get the covariance weights.MerweUnscentedTransform.getWc()
Get the covariance weights.UnscentedTransformProvider.getWc()
Get the covariance weights.JulierUnscentedTransform.getWm()
Get the mean weights.MerweUnscentedTransform.getWm()
Get the mean weights.UnscentedTransformProvider.getWm()
Get the mean weights.AbstractUnscentedTransform.unscentedTransform
(RealVector state, RealMatrix covariance) Perform the unscented transform from a state and its covariance.UnscentedTransformProvider.unscentedTransform
(RealVector state, RealMatrix covariance) Perform the unscented transform from a state and its covariance.Modifier and TypeMethodDescriptiondefault Pair<RealVector,
RealMatrix> UnscentedTransformProvider.inverseUnscentedTransform
(RealVector[] sigmaPoints) Perform the inverse unscented transform from an array of sigma points.Modifier and TypeMethodDescriptiondefault RealMatrix
UnscentedTransformProvider.getUnscentedCovariance
(RealVector[] sigmaPoints, RealVector meanState) Computes the unscented covariance matrix from a weighted mean state and a set of sigma points.default RealVector
UnscentedTransformProvider.getUnscentedMeanState
(RealVector[] sigmaPoints) Computes a weighted mean state from a given set of sigma points.default Pair<RealVector,
RealMatrix> UnscentedTransformProvider.inverseUnscentedTransform
(RealVector[] sigmaPoints) Perform the inverse unscented transform from an array of sigma points.AbstractUnscentedTransform.unscentedTransform
(RealVector state, RealMatrix covariance) Perform the unscented transform from a state and its covariance.UnscentedTransformProvider.unscentedTransform
(RealVector state, RealMatrix covariance) Perform the unscented transform from a state and its covariance.