public uint[] GetUIntShape() { return(Dims.Select(x => (uint)x).ToArray()); }
public Shape Pad(Array <int> paddings) { return(new Shape(Dims.Select((D, i) => D + 2 * paddings[i]))); }
public long[] GetLongShape() { return(Dims.Select(x => (long)x).ToArray()); }
public int GetIndex(params int[] dimensions) { return(Dims.Select((t, i) => dimensions[i] * Strides[i]).Sum()); }