Tensor<T>.Item[ReadOnlySpan 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Item[Tensor<Boolean>] | |
Item[ReadOnlySpan<NIndex>] |
傳回 Tensor 指定項目的參考。 |
Item[ReadOnlySpan<NRange>] |
傳回 Tensor 的配量。 |
Item[ReadOnlySpan<IntPtr>] |
傳回 Tensor 指定項目的參考。 |
Item[Tensor<Boolean>]
- 來源:
- Tensor.cs
- 來源:
- Tensor.cs
public:
property System::Numerics::Tensors::Tensor<T> ^ default[System::Numerics::Tensors::Tensor<bool> ^] { System::Numerics::Tensors::Tensor<T> ^ get(System::Numerics::Tensors::Tensor<bool> ^ filter); };
public System.Numerics.Tensors.Tensor<T> this[System.Numerics.Tensors.Tensor<bool> filter] { get; }
member this.Item(System.Numerics.Tensors.Tensor<bool>) : System.Numerics.Tensors.Tensor<'T>
Default Public ReadOnly Property Item(filter As Tensor(Of Boolean)) As Tensor(Of T)
參數
屬性值
例外狀況
適用於
Item[ReadOnlySpan<NIndex>]
- 來源:
- Tensor.cs
- 來源:
- Tensor.cs
傳回 Tensor 指定項目的參考。
public:
property T % default[ReadOnlySpan<System::Buffers::NIndex>] { T % get(ReadOnlySpan<System::Buffers::NIndex> indexes); };
public ref 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>]
- 來源:
- Tensor.cs
- 來源:
- Tensor.cs
傳回 Tensor 的配量。
public:
property System::Numerics::Tensors::Tensor<T> ^ default[ReadOnlySpan<System::Buffers::NRange>] { System::Numerics::Tensors::Tensor<T> ^ get(ReadOnlySpan<System::Buffers::NRange> ranges); void set(ReadOnlySpan<System::Buffers::NRange> ranges, System::Numerics::Tensors::Tensor<T> ^ value); };
public System.Numerics.Tensors.Tensor<T> this[scoped ReadOnlySpan<System.Buffers.NRange> ranges] { get; set; }
member this.Item(ReadOnlySpan<System.Buffers.NRange>) : System.Numerics.Tensors.Tensor<'T> with get, set
Default Public Property Item(ranges As ReadOnlySpan(Of NRange)) As Tensor(Of T)
參數
- ranges
- ReadOnlySpan<NRange>
屬性值
實作
例外狀況
當任何索引小於 0 或任何索引大於或等於 FlattenedLength 時擲回
適用於
Item[ReadOnlySpan<IntPtr>]
- 來源:
- Tensor.cs
- 來源:
- Tensor.cs
傳回 Tensor 指定項目的參考。
public:
property T % default[ReadOnlySpan<IntPtr>] { T % get(ReadOnlySpan<IntPtr> indexes); };
public ref 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<nativeint>
屬性值
T
例外狀況
當索引小於 0 或索引大於或等於 FlattenedLength 時擲回