def surface(self, x_vals, y_vals, z_vals, title=None):
        _cell = _Cell(self._r, self._c, title, self._cmap)
        safe_call(backend.get().af_draw_surface(self._wnd,
                                                x_vals.arr, y_vals.arr, z_vals.arr,
                                                ct.pointer(_cell)))
A subclass can define this as a hook for optimizations.
dataset/ETHPy150Open arrayfire/arrayfire-python/arrayfire/graphics.py/Window.surface--crossover with--dataset/ETHPy150Open ctxis/canape/CANAPE.Scripting/Lib/lib2to3/pytree.py/BasePattern.optimize