Skip navigation links
A C D E F G H I K L M N O P R S T U V W 

A

add(int, int, double) - Method in class ch.akuhn.matrix.DenseMatrix
 
add(int, int, double) - Method in class ch.akuhn.matrix.Matrix
Add to the value at the given row/column
add(int, int, double) - Method in class ch.akuhn.matrix.SparseMatrix
 
add(int, double) - Method in class ch.akuhn.matrix.SparseVector
 
add(int, double) - Method in class ch.akuhn.matrix.Vector
Add the given value to the value at the given index
addColumn() - Method in class ch.akuhn.matrix.SparseMatrix
Add a new column to the end, increasing the number of columns by 1
addRow() - Method in class ch.akuhn.matrix.SparseMatrix
Add a new row to the end, increasing the number of rows by 1
addRow(double[]) - Method in class ch.akuhn.matrix.SparseMatrix
 
addToRow(int, Vector) - Method in class ch.akuhn.matrix.SparseMatrix
Add the given values to the given row
AllEigenvalues - Class in ch.akuhn.matrix.eigenvalues
Finds all eigenvalues of a matrix.
AllEigenvalues(Matrix) - Constructor for class ch.akuhn.matrix.eigenvalues.AllEigenvalues
Construct with the given matrix
applyCentering() - Method in class ch.akuhn.matrix.Vector
mean-center the vector
applyMultiplication(double) - Method in class ch.akuhn.matrix.DenseMatrix
Inline multiplication by a constant
asArray() - Method in class ch.akuhn.matrix.Matrix
Get the matrix data as a 2D dense array
asColumnMajorArray() - Method in class ch.akuhn.matrix.Matrix
Get in col-major format
asDenseDoubleDouble() - Method in class ch.akuhn.matrix.SparseMatrix
Convert to a dense 2d double array
assertInvariant() - Method in class ch.akuhn.matrix.DenseMatrix
 
assertInvariant() - Method in class ch.akuhn.matrix.SymmetricMatrix
 

C

callback(Vector) - Method in class ch.akuhn.matrix.eigenvalues.FewEigenvalues
 
ch.akuhn.matrix - package ch.akuhn.matrix
 
ch.akuhn.matrix.eigenvalues - package ch.akuhn.matrix.eigenvalues
 
column(int) - Method in class ch.akuhn.matrix.Matrix
Get the given column as a vector
columnCount() - Method in class ch.akuhn.matrix.DenseMatrix
 
columnCount() - Method in class ch.akuhn.matrix.Matrix
Get the number of columns
columnCount() - Method in class ch.akuhn.matrix.SparseMatrix
 
columnCount() - Method in class ch.akuhn.matrix.SymmetricMatrix
 
columns() - Method in class ch.akuhn.matrix.Matrix
Get an Iterable over the columns
copy(double[], int, int) - Static method in class ch.akuhn.matrix.Vector
Copy a range from an array into a vector.
cosine(DenseVector) - Method in class ch.akuhn.matrix.DenseVector
Cosine of angle between this and another vector
count(double[][]) - Static method in class ch.akuhn.matrix.Util
Count

D

decompose() - Method in class ch.akuhn.matrix.eigenvalues.SingularValues
Perform the decomposition
dense(int, int) - Static method in class ch.akuhn.matrix.Matrix
Create a zeroed dense matrix
dense(int) - Static method in class ch.akuhn.matrix.Vector
Create an empty dense vector
DenseMatrix - Class in ch.akuhn.matrix
A Dense matrix.
DenseMatrix(double[][]) - Constructor for class ch.akuhn.matrix.DenseMatrix
Construct with the given values
DenseMatrix(int, int) - Constructor for class ch.akuhn.matrix.DenseMatrix
Construct with the given size
DenseVector - Class in ch.akuhn.matrix
A dense vector
DenseVector(double[]) - Constructor for class ch.akuhn.matrix.DenseVector
 
DenseVector(int) - Constructor for class ch.akuhn.matrix.DenseVector
 
density() - Method in class ch.akuhn.matrix.Matrix
Get the density
density() - Method in class ch.akuhn.matrix.Vector
 
dot(Vector) - Method in class ch.akuhn.matrix.SparseVector
 
dot(Vector) - Method in class ch.akuhn.matrix.Vector
Returns the dot/scalar product.

E

Eigenvalues - Class in ch.akuhn.matrix.eigenvalues
The eigen-decomposition of a matrix.
Eigenvalues(int) - Constructor for class ch.akuhn.matrix.eigenvalues.Eigenvalues
Construct with the given dimensions
elementCount() - Method in class ch.akuhn.matrix.Matrix
 
entries() - Method in class ch.akuhn.matrix.SparseVector
 
entries() - Method in class ch.akuhn.matrix.Vector
Iterates over all entries.
Entry(int, double) - Constructor for class ch.akuhn.matrix.Vector.Entry
Construct
equals(Vector, double) - Method in class ch.akuhn.matrix.DenseVector
 
equals(Object) - Method in class ch.akuhn.matrix.SparseMatrix
 
equals(Object) - Method in class ch.akuhn.matrix.SparseVector
 
equals(SparseVector) - Method in class ch.akuhn.matrix.SparseVector
Test for equality
equals(Vector, double) - Method in class ch.akuhn.matrix.SparseVector
 
equals(Vector, double) - Method in class ch.akuhn.matrix.Vector
Test for equality

F

FewEigenvalues - Class in ch.akuhn.matrix.eigenvalues
Finds a few eigenvalues of a matrix.
FewEigenvalues(int) - Constructor for class ch.akuhn.matrix.eigenvalues.FewEigenvalues
 
fill(double) - Method in class ch.akuhn.matrix.DenseMatrix
Fill with a constant
from(int, int, double...) - Static method in class ch.akuhn.matrix.Matrix
Build a matrix from the given values (row-major)
from(double...) - Static method in class ch.akuhn.matrix.Vector
Construct a Vector from an array of values
fromBothEnds(int) - Method in class ch.akuhn.matrix.eigenvalues.FewEigenvalues
Compute eigenvalues from both end of the spectrum.
fromJagged(double[][]) - Static method in class ch.akuhn.matrix.SymmetricMatrix
Create from jagged low triangular values
fromSquare(double[][]) - Static method in class ch.akuhn.matrix.SymmetricMatrix
Create from a square matrix

G

get(int, int) - Method in class ch.akuhn.matrix.DenseMatrix
 
get(int) - Method in class ch.akuhn.matrix.DenseVector
 
get(int, int) - Method in class ch.akuhn.matrix.Matrix
 
get(int, int) - Method in class ch.akuhn.matrix.SparseMatrix
 
get(int) - Method in class ch.akuhn.matrix.SparseVector
 
get(int, int) - Method in class ch.akuhn.matrix.SymmetricMatrix
 
get(int) - Method in class ch.akuhn.matrix.Vector
Get the value at the given index
getHistogram() - Method in class ch.akuhn.matrix.Matrix
 
getHistogram(double[][], int) - Static method in class ch.akuhn.matrix.Util
Get the histogram
getN() - Method in class ch.akuhn.matrix.eigenvalues.Eigenvalues
 
greatest(int) - Method in class ch.akuhn.matrix.eigenvalues.FewEigenvalues
Compute the largest eigenvalues in magnitude.

H

hashCode() - Method in class ch.akuhn.matrix.SparseMatrix
 
hashCode() - Method in class ch.akuhn.matrix.SparseVector
 

I

index - Variable in class ch.akuhn.matrix.Vector.Entry
The index
indexOf(Vector) - Static method in class ch.akuhn.matrix.Matrix
Get the index of the given vector
isSquare() - Method in class ch.akuhn.matrix.Matrix
 
isUsed(int) - Method in class ch.akuhn.matrix.SparseVector
Test if an index has a set value

K

keys() - Method in class ch.akuhn.matrix.SparseVector
 

L

largest(int) - Method in class ch.akuhn.matrix.eigenvalues.Eigenvalues
Configure to compute the largest nev values/vectors.
largest(int) - Method in class ch.akuhn.matrix.eigenvalues.FewEigenvalues
Compute the largest algebraic eigenvalues.
lowest(int) - Method in class ch.akuhn.matrix.eigenvalues.FewEigenvalues
Compute the smallest eigenvalues in magnitude.

M

main(String...) - Static method in class ch.akuhn.matrix.eigenvalues.SingularValues
Sample main
makeValues(int, int) - Method in class ch.akuhn.matrix.DenseMatrix
 
makeValues(int, int) - Method in class ch.akuhn.matrix.SymmetricMatrix
 
Matrix - Class in ch.akuhn.matrix
Two-dimensional table of floating point numbers.
Matrix() - Constructor for class ch.akuhn.matrix.Matrix
 
max() - Method in class ch.akuhn.matrix.Matrix
 
max(double[], double) - Static method in class ch.akuhn.matrix.Util
Max
max(double[][], double) - Static method in class ch.akuhn.matrix.Util
Max
mean() - Method in class ch.akuhn.matrix.Matrix
 
mean() - Method in class ch.akuhn.matrix.Vector
 
min() - Method in class ch.akuhn.matrix.Matrix
 
min(double[], double) - Static method in class ch.akuhn.matrix.Util
Min
min(double[][], double) - Static method in class ch.akuhn.matrix.Util
Min
mult(Vector) - Method in class ch.akuhn.matrix.Matrix
Returns y = Ax.
mult(Vector) - Method in class ch.akuhn.matrix.SparseMatrix
 
mult(Vector) - Method in class ch.akuhn.matrix.SymmetricMatrix
 

N

n - Variable in class ch.akuhn.matrix.eigenvalues.Eigenvalues
 
nev - Variable in class ch.akuhn.matrix.eigenvalues.Eigenvalues
 
newInstance(int, int) - Method in class ch.akuhn.matrix.DenseMatrix
 
newInstance() - Method in class ch.akuhn.matrix.Matrix
 
newInstance(int, int) - Method in class ch.akuhn.matrix.Matrix
 
newInstance(int, int) - Method in class ch.akuhn.matrix.SparseMatrix
 
norm() - Method in class ch.akuhn.matrix.DenseVector
 
norm() - Method in class ch.akuhn.matrix.Vector
Compute the L2 norm

O

of(Matrix) - Static method in class ch.akuhn.matrix.eigenvalues.Eigenvalues
Get an object that can compute the eigendecomposition of the given matrix.
of(Matrix) - Static method in class ch.akuhn.matrix.eigenvalues.FewEigenvalues
 

P

put(int, int, double) - Method in class ch.akuhn.matrix.DenseMatrix
 
put(int, double) - Method in class ch.akuhn.matrix.DenseVector
 
put(int, int, double) - Method in class ch.akuhn.matrix.Matrix
Set the value at the given row/column
put(int, int, double) - Method in class ch.akuhn.matrix.SparseMatrix
 
put(int, double) - Method in class ch.akuhn.matrix.SparseVector
 
put(int, int, double) - Method in class ch.akuhn.matrix.SymmetricMatrix
 
put(int, double) - Method in class ch.akuhn.matrix.Vector
Set the value at an index

R

random(int, int, double) - Static method in class ch.akuhn.matrix.SparseMatrix
Create a random matrix
readFrom(Scanner) - Static method in class ch.akuhn.matrix.SparseMatrix
Read matrix from Scanner
resizeTo(int) - Method in class ch.akuhn.matrix.SparseVector
Resize the vector
row(int) - Method in class ch.akuhn.matrix.Matrix
Get the given row as a vector
row(int) - Method in class ch.akuhn.matrix.SparseMatrix
 
rowCount() - Method in class ch.akuhn.matrix.DenseMatrix
 
rowCount() - Method in class ch.akuhn.matrix.Matrix
 
rowCount() - Method in class ch.akuhn.matrix.SparseMatrix
 
rowCount() - Method in class ch.akuhn.matrix.SymmetricMatrix
 
rows() - Method in class ch.akuhn.matrix.DenseMatrix
 
rows() - Method in class ch.akuhn.matrix.Matrix
Get an Iterable over the rows
rows() - Method in class ch.akuhn.matrix.SparseMatrix
 
rowwiseMean() - Method in class ch.akuhn.matrix.Matrix
 
rowwiseMean() - Method in class ch.akuhn.matrix.SymmetricMatrix
 
run() - Method in class ch.akuhn.matrix.eigenvalues.AllEigenvalues
 
run() - Method in class ch.akuhn.matrix.eigenvalues.Eigenvalues
Run the decomposition algorithm.
run() - Method in class ch.akuhn.matrix.eigenvalues.FewEigenvalues
Runs the eigenvalue decomposition, using an implicitly restarted Arnoldi process (IRAP).

S

scaleAndAddTo(double, Vector) - Method in class ch.akuhn.matrix.SparseVector
 
scaleAndAddTo(double, Vector) - Method in class ch.akuhn.matrix.Vector
y = y + a*this.
setRow(int, SparseVector) - Method in class ch.akuhn.matrix.SparseMatrix
Sets the row, no check is made on SparseVector.size() Use with care.
SingularValues - Class in ch.akuhn.matrix.eigenvalues
Compute the Singular Value Decomposition.
SingularValues(Matrix, int) - Constructor for class ch.akuhn.matrix.eigenvalues.SingularValues
Construct with the given matrix and required number of S.V.s
size() - Method in class ch.akuhn.matrix.DenseVector
 
size() - Method in class ch.akuhn.matrix.SparseVector
 
size() - Method in class ch.akuhn.matrix.Vector
 
smallest(int) - Method in class ch.akuhn.matrix.eigenvalues.FewEigenvalues
Compute the smallest algebraic eigenvalues.
sparse(int, int) - Static method in class ch.akuhn.matrix.Matrix
Create a sparse matrix
sparse(int) - Static method in class ch.akuhn.matrix.Vector
Create an empty sparse vector
SparseMatrix - Class in ch.akuhn.matrix
A sparse matrix
SparseMatrix(double[][]) - Constructor for class ch.akuhn.matrix.SparseMatrix
Construct with the given values
SparseMatrix(int, int) - Constructor for class ch.akuhn.matrix.SparseMatrix
Construct with the given size
SparseVector - Class in ch.akuhn.matrix
A sparse vector
SparseVector(double[]) - Constructor for class ch.akuhn.matrix.SparseVector
 
SparseVector(int) - Constructor for class ch.akuhn.matrix.SparseVector
 
SparseVector(int, int) - Constructor for class ch.akuhn.matrix.SparseVector
Construct with the given length and capacity
storeOn(double[], int) - Method in class ch.akuhn.matrix.Vector
I/O
storeSparseOn(Appendable) - Method in class ch.akuhn.matrix.Matrix
I/O
storeSparseOn(String) - Method in class ch.akuhn.matrix.Matrix
Write to file
sum(double[][]) - Static method in class ch.akuhn.matrix.Util
Sum
sum(double[]) - Static method in class ch.akuhn.matrix.Util
Sum
sum() - Method in class ch.akuhn.matrix.Vector
 
SymmetricMatrix - Class in ch.akuhn.matrix
Matrix where aij = aji for all elements.
SymmetricMatrix(int) - Constructor for class ch.akuhn.matrix.SymmetricMatrix
Construct with given size
SymmetricMatrix(double[][]) - Constructor for class ch.akuhn.matrix.SymmetricMatrix
Construct with given values, which must be jagged and represent the lower triangular values

T

times(double) - Method in class ch.akuhn.matrix.DenseVector
 
times(double) - Method in class ch.akuhn.matrix.SparseVector
 
times(double[][], double) - Static method in class ch.akuhn.matrix.Util
Multiply by constant
times(double) - Method in class ch.akuhn.matrix.Vector
Multiply by a constant, creating a new vector
timesEquals(double) - Method in class ch.akuhn.matrix.DenseVector
 
timesEquals(double) - Method in class ch.akuhn.matrix.SparseVector
 
timesEquals(double) - Method in class ch.akuhn.matrix.Vector
Multiply by a constant in-place
toString() - Method in class ch.akuhn.matrix.Matrix
 
toString() - Method in class ch.akuhn.matrix.Vector
 
transposeMultiply(Vector) - Method in class ch.akuhn.matrix.Matrix
Returns y = (A^T)x.
transposeMultiply(Vector) - Method in class ch.akuhn.matrix.SparseMatrix
 
transposeNonTransposeMultiply(Vector) - Method in class ch.akuhn.matrix.Matrix
Returns y = (A^T)Ax.
trim() - Method in class ch.akuhn.matrix.SparseMatrix
Trim each row
trim() - Method in class ch.akuhn.matrix.SparseVector
Trim the underlying dense arrays to compact space and save memory

U

unwrap() - Method in class ch.akuhn.matrix.DenseMatrix
 
unwrap() - Method in class ch.akuhn.matrix.DenseVector
 
unwrap() - Method in class ch.akuhn.matrix.Matrix
 
unwrap() - Method in class ch.akuhn.matrix.SymmetricMatrix
 
unwrap() - Method in class ch.akuhn.matrix.Vector
 
used() - Method in class ch.akuhn.matrix.DenseMatrix
 
used() - Method in class ch.akuhn.matrix.Matrix
 
used() - Method in class ch.akuhn.matrix.SparseMatrix
 
used() - Method in class ch.akuhn.matrix.SparseVector
 
used() - Method in class ch.akuhn.matrix.Vector
Returns number of non-zero-valued entries.
Util - Class in ch.akuhn.matrix
Utilities
Util() - Constructor for class ch.akuhn.matrix.Util
 

V

value - Variable in class ch.akuhn.matrix.eigenvalues.Eigenvalues
The eigenvalues
value - Variable in class ch.akuhn.matrix.eigenvalues.SingularValues
Singular values
value - Variable in class ch.akuhn.matrix.Vector.Entry
The value
values - Variable in class ch.akuhn.matrix.DenseMatrix
 
values() - Method in class ch.akuhn.matrix.SparseVector
 
vector - Variable in class ch.akuhn.matrix.eigenvalues.Eigenvalues
The eigenvectors
Vector - Class in ch.akuhn.matrix
An ordered list of floating point numbers.
Vector() - Constructor for class ch.akuhn.matrix.Vector
 
Vector.Entry - Class in ch.akuhn.matrix
An entry in a sparse vector
vectorLeft - Variable in class ch.akuhn.matrix.eigenvalues.SingularValues
Left singular vectors
vectorRight - Variable in class ch.akuhn.matrix.eigenvalues.SingularValues
Right singular vectors

W

wrap(double...) - Static method in class ch.akuhn.matrix.Vector
Wrap an array in a vector
A C D E F G H I K L M N O P R S T U V W 
Skip navigation links