Tools
Merge two dictionaries
Multiply two dictionaries
- PEPit.tools.multiply_dicts(dict1, dict2)[source]
Multiply 2 dictionaries in the sense of developing a product of 2 sums.
- Parameters
dict1 (dict) – any dictionary
dict2 (dict) – any dictionary
- Returns
product_dict (dict) – the keys are the couple of keys of dict1 and dict2 and the values the product of values of dict1 and dict2.