Jaa


TensorSpan<T>.Item[ReadOnlySpan Property

Definition

Overloads

Item[ReadOnlySpan<NIndex>]

Returns a reference to specified element of the TensorSpan.

Item[ReadOnlySpan<NRange>]

Returns a slice of the TensorSpan.

Item[ReadOnlySpan<IntPtr>]

Returns a reference to specified element of the TensorSpan.

Item[ReadOnlySpan<NIndex>]

Source:
TensorSpan.cs
Source:
TensorSpan.cs

Returns a reference to specified element of the TensorSpan.

public:
 property T % default[ReadOnlySpan<System::Buffers::NIndex>] { T % get(ReadOnlySpan<System::Buffers::NIndex> indexes); };
public ref 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

T

Exceptions

Thrown when any index is less than 0 or any index is greater than or equal to FlattenedLength

Applies to

Item[ReadOnlySpan<NRange>]

Source:
TensorSpan.cs
Source:
TensorSpan.cs

Returns a slice of the TensorSpan.

public:
 property System::Numerics::Tensors::TensorSpan<T> default[ReadOnlySpan<System::Buffers::NRange>] { System::Numerics::Tensors::TensorSpan<T> get(ReadOnlySpan<System::Buffers::NRange> ranges); void set(ReadOnlySpan<System::Buffers::NRange> ranges, System::Numerics::Tensors::TensorSpan<T> value); };
public System.Numerics.Tensors.TensorSpan<T> this[scoped ReadOnlySpan<System.Buffers.NRange> ranges] { get; set; }
member this.Item(ReadOnlySpan<System.Buffers.NRange>) : System.Numerics.Tensors.TensorSpan<'T> with get, set
Default Public Property Item(ranges As ReadOnlySpan(Of NRange)) As TensorSpan(Of T)

Parameters

Property Value

Exceptions

Thrown when any index is less than 0 or any index is greater than or equal to FlattenedLength

Applies to

Item[ReadOnlySpan<IntPtr>]

Source:
TensorSpan.cs
Source:
TensorSpan.cs

Returns a reference to specified element of the TensorSpan.

public:
 property T % default[ReadOnlySpan<IntPtr>] { T % get(ReadOnlySpan<IntPtr> indexes); };
public ref 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<IntPtr>

ReadOnlySpan<nativeint>

Property Value

T

Exceptions

Thrown when any index is less than 0 or any index is greater than or equal to FlattenedLength

Applies to