ExpHP / rsp2

phonons in rust
Apache License 2.0
2 stars 1 forks source link

Lattice construction and degenerate matrices #8

Open ExpHP opened 7 years ago

ExpHP commented 7 years ago
    // FIXME API in limbo, it should do one of the following:
    //  * have new() return Lattice, make `inverse` a lazy Option,
    //      make `inverse_matrix` and `inverted` return Results
    //  * have new() return Result, with `inverse` strictly computed as it is now
    /// Create a lattice from a matrix where the rows are lattice vectors.
    pub fn new(matrix: &[[f64; 3]; 3]) -> Self {
        ...
    }