| Package | Description |
|---|---|
| ch.akuhn.matrix | |
| ch.akuhn.matrix.eigenvalues |
| 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
|
abstract Vector |
Vector.times(double scalar)
Multiply by a constant, creating a new vector
|
Vector |
SparseVector.times(double scalar) |
Vector |
DenseVector.times(double scalar) |
abstract Vector |
Vector.timesEquals(double scalar)
Multiply by a constant in-place
|
Vector |
SparseVector.timesEquals(double scalar) |
Vector |
DenseVector.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> |
SparseMatrix.rows() |
Iterable<Vector> |
Matrix.rows()
Get an
Iterable over the rows |
Iterable<Vector> |
DenseMatrix.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) |
abstract boolean |
Vector.equals(Vector v,
double epsilon)
Test for equality
|
boolean |
SparseVector.equals(Vector v,
double epsilon) |
boolean |
DenseVector.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) |