   Y(np.ndarray): Feature vector for the atoms in structure B</span>

<span class="sd">        Returns:</span>
<span class="sd">            np.ndarray: NxM matrix of local similarities between structures A</span>
<span class="sd">                and B, with N and M atoms respectively.</span>

<span class="sd">        &quot;&quot;&quot;</span>
        <span class="k">if</span> <span class="n">callable</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">metric</sp