Redigera

Dela via


ArrayShapeEncoder.Shape Method

Definition

Encodes array shape.

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

Parameters

rank
Int32

The number of dimensions in the array (shall be 1 or more).

sizes
ImmutableArray<Int32>

Dimension sizes. The array may be shorter than rank but not longer.

lowerBounds
ImmutableArray<Int32>

Dimension lower bounds, or default(ImmutableArray<T>) to set all rank lower bounds to 0. The array may be shorter than rank but not longer.

Exceptions

rank is outside of range [1, 0xffff], smaller than sizes.Length, or smaller than lowerBounds.Length.

sizes is null.

Applies to