s_shape</span><span class="p">)</span>
                <span class="k">if</span> <span class="n">is_sparse</span><span class="p">:</span>
                    <span class="n">data_der</span> <span class="o">=</span> <span class="p">[]</span>
                    <span class="n">coords_der</span> <span class="o">=</span> <span class="p">[]</span>
                <span class="k">else</span><span class="p">:</span>
                    <span class="n">derivatives</span> <span class="o">=</span> <span class="n">np