Package | Description |
---|---|
ch.akuhn.matrix | |
ch.akuhn.matrix.eigenvalues | |
org.openimaj.math.matrix | |
org.openimaj.ml.clustering.spectral |
Modifier and Type | Class and Description |
---|---|
class |
DenseVector
A dense vector
|
class |
SparseVector
A sparse vector
|
Modifier and Type | Method and Description |
---|---|
Vector |
Matrix.column(int column)
Get the given column as a vector
|
static Vector |
Vector.copy(double[] values,
int start,
int length)
Copy a range from an array into a vector.
|
static Vector |
Vector.dense(int size)
Create an empty dense vector
|
static Vector |
Vector.from(double... values)
Construct a Vector from an array of values
|
Vector |
SymmetricMatrix.mult(Vector v) |
Vector |
SparseMatrix.mult(Vector dense) |
Vector |
Matrix.mult(Vector x)
Returns
y = Ax . |
Vector |
SparseMatrix.row(int row) |
Vector |
Matrix.row(int row)
Get the given row as a vector
|
static Vector |
Vector.sparse(int size)
Create an empty sparse vector
|
Vector |
DenseVector.times(double scalar) |
abstract Vector |
Vector.times(double scalar)
Multiply by a constant, creating a new vector
|
Vector |
SparseVector.times(double scalar) |
Vector |
DenseVector.timesEquals(double scalar) |
abstract Vector |
Vector.timesEquals(double scalar)
Multiply by a constant in-place
|
Vector |
SparseVector.timesEquals(double scalar) |
Vector |
SparseMatrix.transposeMultiply(Vector dense) |
Vector |
Matrix.transposeMultiply(Vector x)
Returns
y = (A^T)x . |
Vector |
Matrix.transposeNonTransposeMultiply(Vector x)
Returns
y = (A^T)Ax . |
static Vector |
Vector.wrap(double... values)
Wrap an array in a vector
|
Modifier and Type | Method and Description |
---|---|
Iterable<Vector> |
Matrix.columns()
Get an
Iterable over the columns |
Iterable<Vector> |
DenseMatrix.rows() |
Iterable<Vector> |
SparseMatrix.rows() |
Iterable<Vector> |
Matrix.rows()
Get an
Iterable over the rows |
Modifier and Type | Method and Description |
---|---|
void |
SparseMatrix.addToRow(int row,
Vector values)
Add the given values to the given row
|
double |
Vector.dot(Vector x)
Returns the dot/scalar product.
|
double |
SparseVector.dot(Vector x) |
boolean |
DenseVector.equals(Vector v,
double epsilon) |
abstract boolean |
Vector.equals(Vector v,
double epsilon)
Test for equality
|
boolean |
SparseVector.equals(Vector v,
double epsilon) |
static int |
Matrix.indexOf(Vector vec)
Get the index of the given vector
|
Vector |
SymmetricMatrix.mult(Vector v) |
Vector |
SparseMatrix.mult(Vector dense) |
Vector |
Matrix.mult(Vector x)
Returns
y = Ax . |
void |
Vector.scaleAndAddTo(double a,
Vector y)
y = y + a*
this . |
void |
SparseVector.scaleAndAddTo(double a,
Vector y) |
Vector |
SparseMatrix.transposeMultiply(Vector dense) |
Vector |
Matrix.transposeMultiply(Vector x)
Returns
y = (A^T)x . |
Vector |
Matrix.transposeNonTransposeMultiply(Vector x)
Returns
y = (A^T)Ax . |
Modifier and Type | Field and Description |
---|---|
Vector[] |
Eigenvalues.vector
The eigenvectors
|
Vector[] |
SingularValues.vectorLeft
Left singular vectors
|
Vector[] |
SingularValues.vectorRight
Right singular vectors
|
Modifier and Type | Method and Description |
---|---|
protected abstract Vector |
FewEigenvalues.callback(Vector vector) |
Modifier and Type | Method and Description |
---|---|
protected abstract Vector |
FewEigenvalues.callback(Vector vector) |
Modifier and Type | Method and Description |
---|---|
static <T extends Vector> |
MatlibMatrixUtils.minusInplace(T A,
Vector D)
Subtract a vector from another vector
A = A - D |
static <T extends Vector> |
MatlibMatrixUtils.plusInplace(T A,
Vector D)
Subtract a vector from another vector
A = A + D |
Modifier and Type | Method and Description |
---|---|
static Vector |
MatlibMatrixUtils.lessThan(Vector v,
double d) |
static Vector |
MatlibMatrixUtils.minus(Vector l,
Vector v) |
Vector |
DiagonalMatrix.mult(Vector x) |
Vector |
DiagonalMatrix.transposeMultiply(Vector x) |
Vector |
DiagonalMatrix.transposeNonTransposeMultiply(Vector x) |
Modifier and Type | Method and Description |
---|---|
static boolean |
MatlibMatrixUtils.any(Vector v) |
static <T extends Matrix> |
MatlibMatrixUtils.appendColumn(T m,
Vector col) |
static <T extends Matrix> |
MatlibMatrixUtils.appendRow(T m,
Vector row) |
static Vector |
MatlibMatrixUtils.lessThan(Vector v,
double d) |
static Vector |
MatlibMatrixUtils.minus(Vector l,
Vector v) |
static <T extends Vector> |
MatlibMatrixUtils.minusInplace(T A,
Vector D)
Subtract a vector from another vector
A = A - D |
Vector |
DiagonalMatrix.mult(Vector x) |
static double |
MatlibMatrixUtils.norm2(Vector row)
Compute the 2-norm (Euclidean norm) of the vector
|
static <T extends Vector> |
MatlibMatrixUtils.plusInplace(T A,
Vector D)
Subtract a vector from another vector
A = A + D |
static void |
MatlibMatrixUtils.setSubMatrixCol(Matrix to,
int row,
int col,
Vector v)
Starting from a given row of a column, set the values of a matrix to the
values of v
|
static void |
MatlibMatrixUtils.setSubMatrixRow(Matrix to,
int row,
int col,
Vector v)
Starting from a given column of a row, set the values of a matrix to the
values of v
|
static void |
MatlibMatrixUtils.setSubVector(Vector to,
int startindex,
Vector from) |
static Jama.Matrix |
MatlibMatrixUtils.toColJama(Vector vector) |
static Jama.Matrix |
MatlibMatrixUtils.toRowJama(Vector vector) |
Vector |
DiagonalMatrix.transposeMultiply(Vector x) |
Vector |
DiagonalMatrix.transposeNonTransposeMultiply(Vector x) |
protected Jama.Matrix |
ThinSingularValueDecomposition.vectorArrayToMatrix(Vector[] vectors,
boolean rows) |
Modifier and Type | Method and Description |
---|---|
Iterator<DoubleObjectPair<Vector>> |
GraphLaplacian.eigenIterator(Eigenvalues evd) |
Iterator<DoubleObjectPair<Vector>> |
GraphLaplacian.Normalised.eigenIterator(Eigenvalues evd) |
Iterator<DoubleObjectPair<Vector>> |
GraphLaplacian.Warped.eigenIterator(Eigenvalues evd) |
DoubleObjectPair<Vector> |
FBEigenIterator.next() |
Modifier and Type | Method and Description |
---|---|
int |
AbsoluteValueEigenChooser.nEigenVectors(Iterator<DoubleObjectPair<Vector>> vals,
int totalEigenVectors) |
int |
ChangeDetectingEigenChooser.nEigenVectors(Iterator<DoubleObjectPair<Vector>> vals,
int totalEigenVectors) |
abstract int |
EigenChooser.nEigenVectors(Iterator<DoubleObjectPair<Vector>> vals,
int totalEigenVectors) |
int |
HardCodedEigenChooser.nEigenVectors(Iterator<DoubleObjectPair<Vector>> vals,
int total) |