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 (deve ser 1 ou mais).

sizes
ImmutableArray<Int32>

Tamanhos de dimensão. A matriz pode ser menor do que rank , mas não mais longa.

lowerBounds
ImmutableArray<Int32>

Limites inferiores de dimensão ou padrão(ImmutableArray<T>) para definir todos os rank limites inferiores como 0. A matriz pode ser menor do que rank , mas não mais longa.

Exceções

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

sizes é null.

Aplica-se a