def _min_dummies(dummies, sym, indices):
    num_types = len(sym)
    m = []
    for dx in dummies:
        if dx:
            m.append(min(dx))
        else:
            m.append(None)
    res = indices[:]
    for i in range(num_types):
        for c, i in enumerate(indices):
            for j in range(num_types):
                if i in dummies[j]:
                    res[c] = m[j]
                    break
    return res
Fast Fourier Transform.
dataset/ETHPy150Open sympy/sympy/sympy/combinatorics/tensor_can.py/_min_dummies--crossover with--dataset/ETHPy150Open lebedov/scikit-cuda/skcuda/fft.py/_fft