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

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

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

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

适用于