ITensor<TSelf,T>.Item[] Property

Definition

Overloads

Item[ReadOnlySpan<NIndex>]

Gets the value at the specified indexes.

Item[ReadOnlySpan<NRange>]

Gets or sets a slice out of the current tensor that contains a specified range.

Item[ReadOnlySpan<IntPtr>]

Gets the value at the specified indexes.

Item[ReadOnlySpan<NIndex>]

Source:
ITensor_1.cs
Source:
ITensor.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 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 use.

Property Value

T

A reference to the element that exists at indexes.

Applies to

Item[ReadOnlySpan<NRange>]

Source:
ITensor_1.cs
Source:
ITensor.cs

Gets or sets a slice out of the current tensor that contains a specified range.

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

Parameters

ranges
ReadOnlySpan<NRange>

The range of which to slice.

Property Value

TSelf

A tensor that consists of all elements of the current tensor in ranges.

Exceptions

ranges is larger than the tensor.

Applies to

Item[ReadOnlySpan<IntPtr>]

Source:
ITensor_1.cs
Source:
ITensor.cs

Gets the value at the specified indexes.

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>

The indexes to use.

Property Value

T

A reference to the element that exists at indexes.

Applies to