Share via


IReadOnlyTensor<TSelf,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::ReadOnlyTensorDimensionSpan<T> GetDimensionSpan(int dimension);
public System.Numerics.Tensors.ReadOnlyTensorDimensionSpan<T> GetDimensionSpan(int dimension);
abstract member GetDimensionSpan : int -> System.Numerics.Tensors.ReadOnlyTensorDimensionSpan<'T>
Public Function GetDimensionSpan (dimension As Integer) As ReadOnlyTensorDimensionSpan(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