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