span>
                <span class="n">non_negative_weights</span><span class="o">.</span><span class="n">extend</span><span class="p">([</span><span class="mi">1</span> <span class="k">for</span> <span class="n">_</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="n">diff</span><span class="p">)])</span>
                
            <span class="n">idxs</span> <span class="o">=</span> <span class="n">non_negative_weight_indices</span>
            <span class=