ReadOnlyTensorSpan<T>.Item[ReadOnlySpan Property
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.
Item[ReadOnlySpan<NIndex>] |
Returns a reference to specified element of the ReadOnlyTensorSpan. |
Item[ReadOnlySpan<NRange>] |
Returns a slice of the ReadOnlyTensorSpan. |
Item[ReadOnlySpan<IntPtr>] |
Returns a reference to specified element of the ReadOnlyTensorSpan. |
- Source:
- ReadOnlyTensorSpan.cs
- Source:
- ReadOnlyTensorSpan.cs
Returns a reference to specified element of the ReadOnlyTensorSpan.
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>
Property Value
Exceptions
Any index is less than 0 or any index is greater than or equal to FlattenedLength.
Applies to
.NET 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
- Source:
- ReadOnlyTensorSpan.cs
- Source:
- ReadOnlyTensorSpan.cs
Returns a slice of the ReadOnlyTensorSpan.
public:
property System::Numerics::Tensors::ReadOnlyTensorSpan<T> default[ReadOnlySpan<System::Buffers::NRange>] { System::Numerics::Tensors::ReadOnlyTensorSpan<T> get(ReadOnlySpan<System::Buffers::NRange> ranges); };
public System.Numerics.Tensors.ReadOnlyTensorSpan<T> this[scoped ReadOnlySpan<System.Buffers.NRange> ranges] { get; }
member this.Item(ReadOnlySpan<System.Buffers.NRange>) : System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
Default Public ReadOnly Property Item(ranges As ReadOnlySpan(Of NRange)) As ReadOnlyTensorSpan(Of T)
Parameters
- ranges
- ReadOnlySpan<NRange>
Property Value
Exceptions
Any index is less than 0 or any index is greater than or equal to FlattenedLength.
Applies to
.NET 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
- Source:
- ReadOnlyTensorSpan.cs
- Source:
- ReadOnlyTensorSpan.cs
Returns a reference to specified element of the ReadOnlyTensorSpan.
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>
Property Value
Exceptions
Any index is less than 0 or any index is greater than or equal to FlattenedLength.
Applies to
.NET 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET feedback
.NET is an open source project. Select a link to provide feedback: