ReadOnlyTensorSpan<T>.Item[ReadOnlySpan 属性

定义

重载

Item[ReadOnlySpan<NIndex>]

返回对 ReadOnlyTensorSpan 的指定元素的引用。

Item[ReadOnlySpan<NRange>]

返回 ReadOnlyTensorSpan 的切片。

Item[ReadOnlySpan<IntPtr>]

返回对 ReadOnlyTensorSpan 的指定元素的引用。

Item[ReadOnlySpan<NIndex>]

Source:
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>]

Source:
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>]

Source:
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 时引发

适用于