Tensor<T>.GetSpan Method

Definition

Overloads

GetSpan(ReadOnlySpan<NIndex>, Int32)

Return a span that starts at the specified index and contains the specified number of items.

GetSpan(ReadOnlySpan<IntPtr>, Int32)

Return a span that starts at the specified index and contains the specified number of items.

GetSpan(ReadOnlySpan<NIndex>, Int32)

Source:
Tensor_1.cs

Return a span that starts at the specified index and contains the specified number of items.

public:
 virtual Span<T> GetSpan(ReadOnlySpan<System::Buffers::NIndex> startIndexes, int length);
public Span<T> GetSpan(scoped ReadOnlySpan<System.Buffers.NIndex> startIndexes, int length);
abstract member GetSpan : ReadOnlySpan<System.Buffers.NIndex> * int -> Span<'T>
override this.GetSpan : ReadOnlySpan<System.Buffers.NIndex> * int -> Span<'T>
Public Function GetSpan (startIndexes As ReadOnlySpan(Of NIndex), length As Integer) As Span(Of T)

Parameters

startIndexes
ReadOnlySpan<NIndex>

The index at which the span should start.

length
Int32

The length for the span to return.

Returns

A span that consists of length elements from the current tensor starting at startIndexes.

Implements

Applies to

GetSpan(ReadOnlySpan<IntPtr>, Int32)

Source:
Tensor_1.cs

Return a span that starts at the specified index and contains the specified number of items.

public:
 virtual Span<T> GetSpan(ReadOnlySpan<IntPtr> startIndexes, int length);
public Span<T> GetSpan(scoped ReadOnlySpan<IntPtr> startIndexes, int length);
abstract member GetSpan : ReadOnlySpan<nativeint> * int -> Span<'T>
override this.GetSpan : ReadOnlySpan<nativeint> * int -> Span<'T>
Public Function GetSpan (startIndexes As ReadOnlySpan(Of IntPtr), length As Integer) As Span(Of T)

Parameters

startIndexes

ReadOnlySpan<IntPtr>

ReadOnlySpan<nativeint>

The index at which the span should start.

length
Int32

The length for the span to return.

Returns

A span that consists of length elements from the current tensor starting at startIndexes.

Implements

Applies to