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

Source:
Tensor.cs
Source:
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>]

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

适用于