ReadOnlyTensorSpan<T>.Item[ReadOnlySpan 屬性

定義

多載

Item[ReadOnlySpan<NIndex>]

傳回 ReadOnlyTensorSpan 指定項目的參考。

Item[ReadOnlySpan<NRange>]

傳回 ReadOnlyTensorSpan 的配量。

Item[ReadOnlySpan<IntPtr>]

傳回 ReadOnlyTensorSpan 指定項目的參考。

Item[ReadOnlySpan<NIndex>]

來源:
ReadOnlyTensorSpan.cs

傳回 ReadOnlyTensorSpan 指定項目的參考。

public:
 property T& ^ default[ReadOnlySpan<System::Buffers::NIndex>] { T& ^ get(ReadOnlySpan<System::Buffers::NIndex> indexes); };
public ref readonly T this[scoped ReadOnlySpan<System.Buffers.NIndex> indexes] { get; }
member this.Item(ReadOnlySpan<System.Buffers.NIndex>) : 'T
Default Public ReadOnly Property Item(indexes As ReadOnlySpan(Of NIndex)) As T

參數

indexes
ReadOnlySpan<NIndex>

屬性值

T

例外狀況

當任何索引小於 0 或任何索引大於或等於 FlattenedLength 時擲回

適用於

Item[ReadOnlySpan<NRange>]

來源:
ReadOnlyTensorSpan.cs

傳回 ReadOnlyTensorSpan 的配量。

public:
 property System::Numerics::Tensors::ReadOnlyTensorSpan<T> default[ReadOnlySpan<System::Buffers::NRange>] { System::Numerics::Tensors::ReadOnlyTensorSpan<T> get(ReadOnlySpan<System::Buffers::NRange> ranges); };
public System.Numerics.Tensors.ReadOnlyTensorSpan<T> this[scoped ReadOnlySpan<System.Buffers.NRange> ranges] { get; }
member this.Item(ReadOnlySpan<System.Buffers.NRange>) : System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
Default Public ReadOnly Property Item(ranges As ReadOnlySpan(Of NRange)) As ReadOnlyTensorSpan(Of T)

參數

屬性值

例外狀況

當任何索引小於 0 或任何索引大於或等於 FlattenedLength 時擲回

適用於

Item[ReadOnlySpan<IntPtr>]

來源:
ReadOnlyTensorSpan.cs

傳回 ReadOnlyTensorSpan 指定項目的參考。

public:
 property T& ^ default[ReadOnlySpan<IntPtr>] { T& ^ get(ReadOnlySpan<IntPtr> indexes); };
public ref readonly T this[scoped ReadOnlySpan<IntPtr> indexes] { get; }
member this.Item(ReadOnlySpan<nativeint>) : 'T
Default Public ReadOnly Property Item(indexes As ReadOnlySpan(Of IntPtr)) As T

參數

indexes

ReadOnlySpan<IntPtr>

ReadOnlySpan<nativeint>

屬性值

T

例外狀況

當任何索引小於 0 或任何索引大於或等於 FlattenedLength 時擲回

適用於