ArrayShapeEncoder.Shape Metodo

Definizione

Codifica la forma della matrice.

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))

Parametri

rank
Int32

Il numero di dimensioni nella matrice (deve essere 1 o più).

sizes
ImmutableArray<Int32>

Dimensioni delle dimensioni. La matrice può essere più breve di rank ma non più lunga.

lowerBounds
ImmutableArray<Int32>

Limiti inferiori della dimensione o il valore predefinito (ImmutableArray<T>) per impostare tutti i limiti inferiori di rank su 0. La matrice può essere più breve di rank ma non più lunga.

Eccezioni

rank non è compreso nell'intervallo [1, 0xffff], è minore di sizes.Length o è minore di lowerBounds.Length.

sizes è null.

Si applica a