="k">def</span> <span class="nf">_plogp_vector</span><span class="p">(</span><span class="n">T</span><span class="p">):</span>
<span class="w">            </span><span class="sd">&quot;&quot;&quot;Precalculation of p*log(p) needed for entropies.&quot;&quot;&quot;</span>
            <span class="n">gfunc</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">zeros</span><span class="p">(</span><span class="n">T</span> <span class="o">+</span> <span class="mi">1</span