cagpjax.linalg
Linear algebra functions.
Eigh
Lanczos
Bases: Algorithm
Lanczos algorithm for approximate partial eigenvalue decomposition.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
max_iters
|
int | None
|
Maximum number of iterations (number of eigenvalues/vectors to compute).
If |
None
|
v0
|
Float[Array, N] | None
|
Initial vector. If |
None
|
key
|
PRNGKeyArray | None
|
Random key for generating a random initial vector if |
None
|
Source code in src/cagpjax/linalg/eigh.py
congruence_transform(A, B)
Congruence transformation A.T @ B @ A
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
A
|
Any
|
Linear operator or array to be applied. |
required |
B
|
Any
|
Square linear operator or array to be transformed. |
required |