/// <summary> /// Roll array elements along a given axis. /// /// Elements that roll beyond the last position are re-introduced at the first. /// </summary> public static int roll(NDArray nd, int shift, int axis = -1) => (int)nd.roll(shift, axis);
public static int roll(NDArray nd, int shift, int axis = -1) => axis == -1 ? nd.roll(shift) : nd.roll(shift, axis);