共用方式為


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

定義

多載

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

傳回 Tensor 的指定專案。

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

傳回 Tensor 的指定專案。

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

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

傳回 Tensor 的指定專案。

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

參數

indexes
ReadOnlySpan<NIndex>

屬性值

T

實作

例外狀況

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

適用於

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

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

傳回 Tensor 的指定專案。

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

參數

indexes

ReadOnlySpan<IntPtr>

ReadOnlySpan<nativeint>

屬性值

T

實作

例外狀況

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

適用於