bw2calc.dense_lca#

Classes#

Module Contents#

class bw2calc.dense_lca.DenseLCA[source]#

Bases: bw2calc.lca.LCA

Inheritance diagram of bw2calc.dense_lca.DenseLCA
solve_linear_system()[source]#

Master solution function for linear system \(Ax=B\).

To most numerical analysts, matrix inversion is a sin.

—Nicolas Higham, Accuracy and Stability of Numerical Algorithms, Society for Industrial and Applied Mathematics, Philadelphia, PA, USA, 2002, p. 260.

We use UMFpack, which is a very fast solver for sparse matrices.

If the technosphere matrix has already been factorized, then the decomposed technosphere (self.solver) is reused. Otherwise the calculation is redone completely.