def _array_like(x, x0):
    x = np.reshape(x, np.shape(x0))
    wrap = getattr(x0, '__array_wrap__', x.__array_wrap__)
    return wrap(x)
Return the equivalent index when the supershape is at the origin.
dataset/ETHPy150Open scipy/scipy/scipy/optimize/nonlin.py/_array_like--crossover with--dataset/ETHPy150Open kobejohn/polymaze/polymaze/shapes.py/Hexagon.origin_index