IReadOnlyTensor<TSelf,T>.Item[ReadOnlySpan Property
В этой статье
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Item[ReadOnlySpan<NIndex>] |
Gets the value at the specified indexes. |
Item[ReadOnlySpan<NRange>] |
Gets the values at the specified ranges. |
Item[ReadOnlySpan<IntPtr>] |
Gets a reference to the specified element of the tensor. |
- Source:
- IReadOnlyTensor.cs
- Source:
- IReadOnlyTensor.cs
Gets the value at the specified indexes.
public:
property T& ^ default[ReadOnlySpan<System::Buffers::NIndex>] { T& ^ get(ReadOnlySpan<System::Buffers::NIndex> indexes); };
public ref readonly 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
Parameters
- indexes
- ReadOnlySpan<NIndex>
The indexes to be used.
Property Value
A reference to the element that exists at indexes
.
Applies to
.NET 10 (package-provided) и другие версии
Продукт | Версии |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
- Source:
- IReadOnlyTensor.cs
- Source:
- IReadOnlyTensor.cs
Gets the values at the specified ranges.
public:
property TSelf default[ReadOnlySpan<System::Buffers::NRange>] { TSelf get(ReadOnlySpan<System::Buffers::NRange> ranges); };
public TSelf this[scoped ReadOnlySpan<System.Buffers.NRange> ranges] { get; }
member this.Item(ReadOnlySpan<System.Buffers.NRange>) : 'Self
Default Public ReadOnly Property Item(ranges As ReadOnlySpan(Of NRange)) As TSelf
Parameters
- ranges
- ReadOnlySpan<NRange>
The ranges to be used.
Property Value
A tensor that consists of all elements of the current tensor in ranges
.
Applies to
.NET 10 (package-provided) и другие версии
Продукт | Версии |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
- Source:
- IReadOnlyTensor.cs
- Source:
- IReadOnlyTensor.cs
Gets a reference to the specified element of the tensor.
public:
property T& ^ default[ReadOnlySpan<IntPtr>] { T& ^ get(ReadOnlySpan<IntPtr> indexes); };
public ref readonly 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
Parameters
- indexes
-
ReadOnlySpan<nativeint>
The index of the element for which to get a reference.
Property Value
A reference to the element that exists at indexes
.
Exceptions
Thrown when one of the following conditions is met:
indexes
does not contain Rank elementsindexes
contains an element that is negative or greater than or equal to the corresponding dimension length
Applies to
.NET 10 (package-provided) и другие версии
Продукт | Версии |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |