><span class="p">))</span>

            <span class="k">if</span> <span class="n">is_sparse</span> <span class="ow">and</span> <span class="n">derivatives_shape</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
                <span class="n">data_der</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">concatenate</span><span class="p">(</span><span class="n">data_der</span><span class="p">)</span>
