Source code for bw2calc.dense_lca
from numpy.linalg import solve
from bw2calc.lca import LCA
[docs]
class DenseLCA(LCA):
"""Convert the `technosphere_matrix` to a numpy array and solve with `numpy.linalg`."""
[docs]
def solve_linear_system(self):
return solve(self.technosphere_matrix.toarray(), self.demand_array)