Exemplo 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();
 }
Exemplo n.º 2
0
 public Layout(Shape shape)
 {
     Shape   = shape;
     Strides = new Strides(shape.InnerChangeMostUnitStrides().ToArray());
     DetectProperties();
 }