ArrayShapeEncoder.Shape Metoda

Definice

Zakóduje obrazec pole.

public:
 void Shape(int rank, System::Collections::Immutable::ImmutableArray<int> sizes, System::Collections::Immutable::ImmutableArray<int> lowerBounds);
public void Shape (int rank, System.Collections.Immutable.ImmutableArray<int> sizes, System.Collections.Immutable.ImmutableArray<int> lowerBounds);
member this.Shape : int * System.Collections.Immutable.ImmutableArray<int> * System.Collections.Immutable.ImmutableArray<int> -> unit
Public Sub Shape (rank As Integer, sizes As ImmutableArray(Of Integer), lowerBounds As ImmutableArray(Of Integer))

Parametry

rank
Int32

Počet dimenzí v matici (musí být 1 nebo více).

sizes
ImmutableArray<Int32>

Velikosti kót. Pole může být kratší než rank , ale ne delší.

lowerBounds
ImmutableArray<Int32>

Dolní hranice dimenze nebo default(ImmutableArray<T>) pro nastavení všech rank dolních mezí na hodnotu 0. Pole může být kratší než rank , ale ne delší.

Výjimky

rank je mimo rozsah [1, 0xffff], menší než sizes.Lengthnebo menší než lowerBounds.Length.

sizes je null.

Platí pro