1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*!

## Algorithms to compute (some) eigenvalues/eigenvectors for symmetric matrices.

*/
pub mod davidson;
pub mod lanczos;

/// Option to compute the lowest, highest or somewhere in the middle part of the
/// spectrum
#[derive(Clone, PartialEq)]
pub enum SpectrumTarget {
    Lowest,
    Highest,
    Target(f64),
}

/// Correction method for the Davidson algorithm
#[derive(Debug, Copy, Clone)]
pub enum DavidsonCorrection {
    DPR,
    GJD,
}