Esempio n. 1
0
 /// <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);
Esempio n. 2
0
 public static int roll(NDArray nd, int shift, int axis = -1)
 => axis == -1 ? nd.roll(shift) : nd.roll(shift, axis);