IReadOnlyTensor.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<IntPtr>] |
Gets the specified element of the tensor. |
Item[ReadOnlySpan<NIndex>]
- Source:
- IReadOnlyTensor.cs
Gets the value at the specified indexes.
public:
property System::Object ^ default[ReadOnlySpan<System::Buffers::NIndex>] { System::Object ^ get(ReadOnlySpan<System::Buffers::NIndex> indexes); };
public object? this[scoped ReadOnlySpan<System.Buffers.NIndex> indexes] { get; }
member this.Item(ReadOnlySpan<System.Buffers.NIndex>) : obj
Default Public ReadOnly Property Item(indexes As ReadOnlySpan(Of NIndex)) As Object
Parameters
- indexes
- ReadOnlySpan<NIndex>
The indexes to be used.
Property Value
The element that exists at indexes
.
Applies to
Item[ReadOnlySpan<IntPtr>]
- Source:
- IReadOnlyTensor.cs
Gets the specified element of the tensor.
public:
property System::Object ^ default[ReadOnlySpan<IntPtr>] { System::Object ^ get(ReadOnlySpan<IntPtr> indexes); };
public object? this[scoped ReadOnlySpan<IntPtr> indexes] { get; }
member this.Item(ReadOnlySpan<nativeint>) : obj
Default Public ReadOnly Property Item(indexes As ReadOnlySpan(Of IntPtr)) As Object
Parameters
- indexes
-
ReadOnlySpan<nativeint>
The index of the element for which to get.
Property Value
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