<spanclass="k">raise</span><spanclass="ne">ValueError</span><spanclass="p">(</span><spanclass="s2">"x and y must be array-like with the same shape"</span><spanclass="p">)</span>
<spanclass="c1"># C++ does the heavy lifting, and expects 1D arrays.</span>