Share via


ITensor<TSelf,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:
ITensor_1.cs

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

public:
 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>
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.

Applies to

GetSpan(ReadOnlySpan<IntPtr>, Int32)

Source:
ITensor_1.cs

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

public:
 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>
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.

Applies to