bw2calc.fast_supply_arrays#
Attributes#
Classes#
Mixin class for LCA which allows for fast calculations of multiple inventories. |
Module Contents#
- class bw2calc.fast_supply_arrays.FastSupplyArraysMixin[source]#
Mixin class for LCA which allows for fast calculations of multiple inventories.
Requires either scikits-umfpack or pypardiso. Must be mixed into an LCA class.
- calculate_supply_arrays(demand_arrays: list[numpy.ndarray]) numpy.ndarray[source]#
Calculate multiple supply arrays in a single calculation.
Much faster than individual calculations, especially when using PARDISO.
Returns a numpy array with dimensions [process scaling amounts, demands]. demands are given in the same order as demand_arrays.