Share via


TensorSpan<T>.GetDimensionSpan(Int32) Method

Definition

Returns a span that can be used to access the flattened elements for a given dimension.

public:
 System::Numerics::Tensors::TensorDimensionSpan<T> GetDimensionSpan(int dimension);
public System.Numerics.Tensors.TensorDimensionSpan<T> GetDimensionSpan(int dimension);
member this.GetDimensionSpan : int -> System.Numerics.Tensors.TensorDimensionSpan<'T>
Public Function GetDimensionSpan (dimension As Integer) As TensorDimensionSpan(Of T)

Parameters

dimension
Int32

The dimension for which the span should be created.

Returns

A span that can be used to access the flattened elements for a given dimension.

Applies to