ArrayShapeEncoder.Shape Método

Definição

Codifica a forma da matriz.

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

Parâmetros

rank
Int32

O número de dimensões na matriz (deverá ser 1 ou mais).

sizes
ImmutableArray<Int32>

Tamanhos da dimensão. A matriz pode ser menor que rank, mas não maior.

lowerBounds
ImmutableArray<Int32>

Limites inferiores da dimensão ou default(ImmutableArray<T>) para definir todos os limites inferiores a 0 do rank. A matriz pode ser menor que rank, mas não maior.

Exceções

rank está fora do intervalo [1, 0xffff], é menor que sizes.Length ou que lowerBounds.Length.

sizes é null.

Aplica-se a