共用方式為


Tensor<T>.IReadOnlyTensor<Tensor<T>,T>.Item[ReadOnlySpan 屬性

定義

多載

IReadOnlyTensor<Tensor<T>,T>.Item[ReadOnlySpan<NIndex>]

會傳回 ReadOnlyTensor 的指定專案。

IReadOnlyTensor<Tensor<T>,T>.Item[ReadOnlySpan<NRange>]

傳回 ReadOnlyTensor 的配量。

IReadOnlyTensor<Tensor<T>,T>.Item[ReadOnlySpan<IntPtr>]

會傳回 ReadOnlyTensor 的指定專案。

IReadOnlyTensor<Tensor<T>,T>.Item[ReadOnlySpan<NIndex>]

來源:
Tensor.cs
來源:
Tensor.cs

會傳回 ReadOnlyTensor 的指定專案。

property T System::Numerics::Tensors::IReadOnlyTensor<System::Numerics::Tensors::Tensor<T>,T>::Item[ReadOnlySpan<System::Buffers::NIndex>] { T get(ReadOnlySpan<System::Buffers::NIndex> indexes); };
T System.Numerics.Tensors.IReadOnlyTensor<System.Numerics.Tensors.Tensor<T>,T>.Item[scoped ReadOnlySpan<System.Buffers.NIndex> indexes] { get; }
member this.System.Numerics.Tensors.IReadOnlyTensor<System.Numerics.Tensors.Tensor<T>,T>.Item(ReadOnlySpan<System.Buffers.NIndex>) : 'T
 ReadOnly Property Item(indexes As ReadOnlySpan(Of NIndex)) As T Implements IReadOnlyTensor(Of Tensor(Of T), T).Item

參數

indexes
ReadOnlySpan<NIndex>

屬性值

T

實作

例外狀況

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

適用於

IReadOnlyTensor<Tensor<T>,T>.Item[ReadOnlySpan<NRange>]

來源:
Tensor.cs
來源:
Tensor.cs

傳回 ReadOnlyTensor 的配量。

property System::Numerics::Tensors::Tensor<T> ^ System::Numerics::Tensors::IReadOnlyTensor<System::Numerics::Tensors::Tensor<T>,T>::Item[ReadOnlySpan<System::Buffers::NRange>] { System::Numerics::Tensors::Tensor<T> ^ get(ReadOnlySpan<System::Buffers::NRange> ranges); };
System.Numerics.Tensors.Tensor<T> System.Numerics.Tensors.IReadOnlyTensor<System.Numerics.Tensors.Tensor<T>,T>.Item[scoped ReadOnlySpan<System.Buffers.NRange> ranges] { get; }
member this.System.Numerics.Tensors.IReadOnlyTensor<System.Numerics.Tensors.Tensor<T>,T>.Item(ReadOnlySpan<System.Buffers.NRange>) : System.Numerics.Tensors.Tensor<'T>
 ReadOnly Property Item(ranges As ReadOnlySpan(Of NRange)) As Tensor(Of T) Implements IReadOnlyTensor(Of Tensor(Of T), T).Item

參數

屬性值

實作

例外狀況

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

適用於

IReadOnlyTensor<Tensor<T>,T>.Item[ReadOnlySpan<IntPtr>]

來源:
Tensor.cs
來源:
Tensor.cs

會傳回 ReadOnlyTensor 的指定專案。

property T System::Numerics::Tensors::IReadOnlyTensor<System::Numerics::Tensors::Tensor<T>,T>::Item[ReadOnlySpan<IntPtr>] { T get(ReadOnlySpan<IntPtr> indexes); };
T System.Numerics.Tensors.IReadOnlyTensor<System.Numerics.Tensors.Tensor<T>,T>.Item[scoped ReadOnlySpan<IntPtr> indexes] { get; }
member this.System.Numerics.Tensors.IReadOnlyTensor<System.Numerics.Tensors.Tensor<T>,T>.Item(ReadOnlySpan<nativeint>) : 'T
 ReadOnly Property Item(indexes As ReadOnlySpan(Of IntPtr)) As T Implements IReadOnlyTensor(Of Tensor(Of T), T).Item

參數

indexes

ReadOnlySpan<IntPtr>

ReadOnlySpan<nativeint>

屬性值

T

實作

例外狀況

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

適用於