public Layout(Shape shape, Strides strides) { Util.EnsureEqual(shape.Rank, strides.Rank, "Shape and strides rank must equal"); Shape = shape; Strides = strides; DetectProperties(); }
public Layout(Shape shape) { Shape = shape; Strides = new Strides(shape.InnerChangeMostUnitStrides().ToArray()); DetectProperties(); }