Uses of Class
org.la4j.Vector
-
-
Uses of Vector in org.la4j
Fields in org.la4j with type parameters of type Vector Modifier and Type Field Description static MatrixVectorOperation<Vector>
LinearAlgebra. OO_PLACE_MATRIX_BY_VECTOR_MULTIPLICATION
static VectorMatrixOperation<Vector>
LinearAlgebra. OO_PLACE_VECTOR_BY_MATRIX_MULTIPLICATION
static VectorVectorOperation<Vector>
LinearAlgebra. OO_PLACE_VECTOR_HADAMARD_PRODUCT
static VectorVectorOperation<Vector>
LinearAlgebra. OO_PLACE_VECTORS_ADDITION
static VectorVectorOperation<Vector>
LinearAlgebra. OO_PLACE_VECTORS_SUBTRACTION
Methods in org.la4j with type parameters of type Vector Modifier and Type Method Description <T extends Vector>
TVector. to(VectorFactory<T> factory)
Converts this vector using the givenfactory
.Methods in org.la4j that return Vector Modifier and Type Method Description Vector
Vector. add(double value)
Adds givenvalue
(v) to this vector (X).Vector
Vector. add(Vector that)
Adds givenvector
(X) to this vector (Y).Vector
Vector. blank()
Creates a blank (an empty vector with same length) copy of this vector.abstract Vector
Vector. blankOfLength(int length)
Creates a blank (an empty vector) copy of this vector with the givenlength
.static Vector
Vector. constant(int length, double value)
Vector
Vector. copy()
Copies this vector.abstract Vector
Vector. copyOfLength(int length)
Copies this vector into the new vector with specifiedlength
.Vector
Vector. divide(double value)
Divides this vector (X) by givenvalue
(v).static Vector
Vector. fromArray(double[] array)
Creates a newVector
from the givenarray
w/o copying the underlying array.static Vector
Vector. fromCollection(java.util.Collection<? extends java.lang.Number> list)
Creates newBasicVector
fromlist
static Vector
Vector. fromCSV(java.lang.String csv)
ParsesVector
from the given CSV string.static Vector
Vector. fromMap(java.util.Map<java.lang.Integer,? extends java.lang.Number> map, int length)
Creates newSparseVector
fromlist
static Vector
Vector. fromMatrixMarket(java.lang.String mm)
ParsesVector
from the given Matrix Market string.abstract Vector
Matrix. getColumn(int j)
Copies the specified column of this matrix into the vector.abstract Vector
Matrix. getRow(int i)
Copies the specified row of this matrix into the vector.Vector
Vector. hadamardProduct(Vector that)
Calculates the Hadamard (element-wise) product of this vector and giventhat
.Vector
Matrix. multiply(Vector that)
Multiplies this matrix (A) by giventhat
vector (x).Vector
Vector. multiply(double value)
Multiplies this vector (X) by givenvalue
(v).Vector
Vector. multiply(Matrix that)
Multiples this vector (X) by giventhat
(A).static Vector
Vector. random(int length, java.util.Random random)
Vector
Vector. select(int[] indices)
Returns a new vector with the selected elements.Vector
Vector. shuffle()
Shuffles this vector.Vector
Vector. slice(int from, int until)
Retrieves the specified sub-vector of this vector.Vector
Vector. sliceLeft(int until)
Retrieves the specified sub-vector of this vector.Vector
Vector. sliceRight(int from)
Retrieves the specified sub-vector of this vector.Vector
Vector. subtract(double value)
Subtracts givenvalue
(v) from this vector (X).Vector
Vector. subtract(Vector that)
Subtracts giventhat
(Y) from this vector (X).Vector
Matrix. toColumnVector()
Converts this matrix into the column vector.Vector
Matrix. toRowVector()
Converts this matrix into the row vector.Vector
Vector. transform(VectorFunction function)
Builds a new vector by applying givenfunction
to each element of this vector.static Vector
Vector. unit(int length)
Creates an unitVector
of the givenlength
.static Vector
Vector. zero(int length)
Creates a zeroVector
of the givenlength
.Methods in org.la4j with parameters of type Vector Modifier and Type Method Description Vector
Vector. add(Vector that)
Adds givenvector
(X) to this vector (Y).abstract <T> T
Matrix. apply(MatrixVectorOperation<T> operation, Vector that)
Pipes this matrix to a givenoperation
.abstract <T> T
Vector. apply(VectorVectorOperation<T> operation, Vector that)
Pipes this vector to a givenoperation
.boolean
Vector. equals(Vector that, double precision)
Returns true when vector is equal to giventhat
vector with givenprecision
.Vector
Vector. hadamardProduct(Vector that)
Calculates the Hadamard (element-wise) product of this vector and giventhat
.double
Vector. innerProduct(Vector that)
Calculates the inner product of this vector and giventhat
.Matrix
Matrix. insertColumn(int j, Vector column)
Adds one column to matrix.Matrix
Matrix. insertRow(int i, Vector row)
Adds one row to matrix.Vector
Matrix. multiply(Vector that)
Multiplies this matrix (A) by giventhat
vector (x).Matrix
Vector. outerProduct(Vector that)
Calculates the outer product of this vector and giventhat
.void
Matrix. setColumn(int j, Vector column)
Copies givencolumn
into the specified column of this matrix.void
Matrix. setRow(int i, Vector row)
Copies givenrow
into the specified row of this matrix.Vector
Vector. subtract(Vector that)
Subtracts giventhat
(Y) from this vector (X). -
Uses of Vector in org.la4j.decomposition
Methods in org.la4j.decomposition that return Vector Modifier and Type Method Description private Vector
EigenDecompositor. generateR(Matrix matrix)
Methods in org.la4j.decomposition with parameters of type Vector Modifier and Type Method Description private int
EigenDecompositor. findMax(Vector vector)
private void
EigenDecompositor. hqr2(Matrix H, Matrix V, Vector d, Vector e)
private void
EigenDecompositor. orthes(Matrix h, Matrix v, Vector ort)
-
Uses of Vector in org.la4j.linear
Methods in org.la4j.linear that return Vector Modifier and Type Method Description Vector
ForwardBackSubstitutionSolver. solve(Vector b)
Vector
GaussianSolver. solve(Vector b)
Vector
JacobiSolver. solve(Vector b)
Vector
LeastNormSolver. solve(Vector b)
Vector
LeastSquaresSolver. solve(Vector b)
Vector
LinearSystemSolver. solve(Vector b)
Solves the system A*x = b.Vector
SeidelSolver. solve(Vector b)
Vector
SquareRootSolver. solve(Vector b)
Vector
SweepSolver. solve(Vector b)
Methods in org.la4j.linear with parameters of type Vector Modifier and Type Method Description private void
GaussianSolver. backSubstitution(Matrix matrix, Vector result)
protected void
AbstractSolver. ensureRHSIsCorrect(Vector vector)
Vector
ForwardBackSubstitutionSolver. solve(Vector b)
Vector
GaussianSolver. solve(Vector b)
Vector
JacobiSolver. solve(Vector b)
Vector
LeastNormSolver. solve(Vector b)
Vector
LeastSquaresSolver. solve(Vector b)
Vector
LinearSystemSolver. solve(Vector b)
Solves the system A*x = b.Vector
SeidelSolver. solve(Vector b)
Vector
SquareRootSolver. solve(Vector b)
Vector
SweepSolver. solve(Vector b)
-
Uses of Vector in org.la4j.matrix
Methods in org.la4j.matrix that return Vector Modifier and Type Method Description Vector
DenseMatrix. getColumn(int j)
Vector
SparseMatrix. getColumn(int j)
Vector
DenseMatrix. getRow(int i)
Vector
SparseMatrix. getRow(int i)
Methods in org.la4j.matrix with parameters of type Vector Modifier and Type Method Description <T> T
ColumnMajorSparseMatrix. apply(MatrixVectorOperation<T> operation, Vector that)
<T> T
DenseMatrix. apply(MatrixVectorOperation<T> operation, Vector that)
<T> T
RowMajorSparseMatrix. apply(MatrixVectorOperation<T> operation, Vector that)
-
Uses of Vector in org.la4j.matrix.dense
Methods in org.la4j.matrix.dense that return Vector Modifier and Type Method Description Vector
Basic1DMatrix. getRow(int i)
Vector
Basic2DMatrix. getRow(int i)
-
Uses of Vector in org.la4j.matrix.sparse
Methods in org.la4j.matrix.sparse that return Vector Modifier and Type Method Description Vector
CCSMatrix. getColumn(int j)
Vector
CRSMatrix. getColumn(int j)
Vector
CCSMatrix. getRow(int i)
Vector
CRSMatrix. getRow(int i)
-
Uses of Vector in org.la4j.operation
Methods in org.la4j.operation with parameters of type Vector Modifier and Type Method Description (package private) abstract R
CommonVectorOperation. applyCommon(Vector a)
abstract R
CommonVectorVectorOperation. applyCommon(Vector a, Vector b)
void
MatrixVectorOperation. ensureApplicableTo(Matrix a, Vector b)
void
VectorMatrixOperation. ensureApplicableTo(Vector a, Matrix b)
void
VectorOperation. ensureApplicableTo(Vector a)
void
VectorVectorOperation. ensureApplicableTo(Vector a, Vector b)
-
Uses of Vector in org.la4j.operation.ooplace
Methods in org.la4j.operation.ooplace that return Vector Modifier and Type Method Description Vector
OoPlaceMatrixByVectorMultiplication. apply(ColumnMajorSparseMatrix a, DenseVector b)
Vector
OoPlaceMatrixByVectorMultiplication. apply(ColumnMajorSparseMatrix a, SparseVector b)
Vector
OoPlaceMatrixByVectorMultiplication. apply(DenseMatrix a, DenseVector b)
Vector
OoPlaceMatrixByVectorMultiplication. apply(DenseMatrix a, SparseVector b)
Vector
OoPlaceMatrixByVectorMultiplication. apply(RowMajorSparseMatrix a, DenseVector b)
Vector
OoPlaceMatrixByVectorMultiplication. apply(RowMajorSparseMatrix a, SparseVector b)
Vector
OoPlaceVectorByMatrixMultiplication. apply(DenseVector a, ColumnMajorSparseMatrix b)
Vector
OoPlaceVectorByMatrixMultiplication. apply(DenseVector a, DenseMatrix b)
Vector
OoPlaceVectorByMatrixMultiplication. apply(DenseVector a, RowMajorSparseMatrix b)
Vector
OoPlaceVectorByMatrixMultiplication. apply(SparseVector a, ColumnMajorSparseMatrix b)
Vector
OoPlaceVectorByMatrixMultiplication. apply(SparseVector a, DenseMatrix b)
Vector
OoPlaceVectorByMatrixMultiplication. apply(SparseVector a, RowMajorSparseMatrix b)
Vector
OoPlaceVectorHadamardProduct. apply(DenseVector a, DenseVector b)
Vector
OoPlaceVectorHadamardProduct. apply(SparseVector a, SparseVector b)
Vector
OoPlaceVectorsAddition. apply(DenseVector a, DenseVector b)
Vector
OoPlaceVectorsAddition. apply(SparseVector a, SparseVector b)
Vector
OoPlaceVectorsSubtraction. apply(DenseVector a, DenseVector b)
Vector
OoPlaceVectorsSubtraction. apply(DenseVector a, SparseVector b)
Vector
OoPlaceVectorsSubtraction. apply(SparseVector a, DenseVector b)
Vector
OoPlaceVectorsSubtraction. apply(SparseVector a, SparseVector b)
Vector
OoPlaceVectorHadamardProduct. applySymmetric(DenseVector a, SparseVector b)
Vector
OoPlaceVectorsAddition. applySymmetric(DenseVector a, SparseVector b)
Methods in org.la4j.operation.ooplace with parameters of type Vector Modifier and Type Method Description private VectorFunction
OoPlaceInnerProduct. dot(Vector b)
void
OoPlaceInnerProduct. ensureApplicableTo(Vector a, Vector b)
void
OoPlaceMatrixByVectorMultiplication. ensureApplicableTo(Matrix a, Vector b)
void
OoPlaceVectorByMatrixMultiplication. ensureApplicableTo(Vector a, Matrix b)
void
OoPlaceVectorHadamardProduct. ensureApplicableTo(Vector a, Vector b)
void
OoPlaceVectorsAddition. ensureApplicableTo(Vector a, Vector b)
void
OoPlaceVectorsSubtraction. ensureApplicableTo(Vector a, Vector b)
-
Uses of Vector in org.la4j.vector
Classes in org.la4j.vector with type parameters of type Vector Modifier and Type Class Description class
VectorFactory<T extends Vector>
An abstract vector factory.Subclasses of Vector in org.la4j.vector Modifier and Type Class Description class
DenseVector
A dense vector.class
SparseVector
A sparse vector.Methods in org.la4j.vector with type parameters of type Vector Modifier and Type Method Description <T extends Vector>
TSparseVector. to(VectorFactory<T> factory)
Methods in org.la4j.vector that return Vector Modifier and Type Method Description Vector
SparseVector. add(double value)
Vector
SparseVector. multiply(double value)
Methods in org.la4j.vector with parameters of type Vector Modifier and Type Method Description <T> T
DenseVector. apply(VectorVectorOperation<T> operation, Vector that)
<T> T
SparseVector. apply(VectorVectorOperation<T> operation, Vector that)
-
Uses of Vector in org.la4j.vector.dense
Subclasses of Vector in org.la4j.vector.dense Modifier and Type Class Description class
BasicVector
A basic dense vector implementation using an array.Methods in org.la4j.vector.dense with type parameters of type Vector Modifier and Type Method Description <T extends Vector>
TBasicVector. to(VectorFactory<T> factory)
Methods in org.la4j.vector.dense that return Vector Modifier and Type Method Description Vector
BasicVector. blankOfLength(int length)
Vector
BasicVector. copyOfLength(int length)
-
Uses of Vector in org.la4j.vector.sparse
Subclasses of Vector in org.la4j.vector.sparse Modifier and Type Class Description class
CompressedVector
A basic sparse vector implementation using underlying value and index arrays.Methods in org.la4j.vector.sparse with type parameters of type Vector Modifier and Type Method Description <T extends Vector>
TCompressedVector. to(VectorFactory<T> factory)
Methods in org.la4j.vector.sparse that return Vector Modifier and Type Method Description Vector
CompressedVector. blankOfLength(int length)
Vector
CompressedVector. copyOfLength(int length)
-