- qspec.convolve_dict ( a , * key_lists , operator = '+' , short_keys = True )[source]
-
- Parameters:
-
- adict
A dictionary to be convolved.
- key_listsIterable
An arbitrary number of Iterables of the same length which include keys from 'a'.
- operatorstr
The operator which is used to combine the key_lists.
- short_keysbool
Whether to just use the keys of the first key_list or representations of the entire operations as the new keys.
- Returns:
-
- outdict | ValueError
A dictionary of the shape {key_lists[0] + key_lists[1] + ... : a[key_lists[0]] + a[key_lists[1]] + ... } if operator == '+'.