CondensedSparseSummation

(class from pyomo.contrib.pynumero.interfaces.utils)

class pyomo.contrib.pynumero.interfaces.utils.CondensedSparseSummation(list_of_matrices)[source]

Bases: object

__init__(list_of_matrices)[source]

This class is used to perform a summation of sparse matrices while retaining the correct and consistent nonzero structure. Create the class with the list of matrices you want to sum, and the condensed_summation method remains valid as long as the structure of the individual matrices is consistent

Methods

__init__(list_of_matrices)

This class is used to perform a summation of sparse matrices while retaining the correct and consistent nonzero structure.

sum(list_of_matrices)

Member Documentation