ITensor.Item[] Proprietà

Definizione

Overload

Nome Descrizione
Item[ReadOnlySpan<NIndex>]

Ottiene il valore in corrispondenza degli indici specificati.

Item[ReadOnlySpan<IntPtr>]

Ottiene o imposta l'elemento specificato del tensore.

Item[ReadOnlySpan<NIndex>]

Origine:
ITensor.cs
Origine:
ITensor.cs

Ottiene il valore in corrispondenza degli indici specificati.

public:
 property System::Object ^ default[ReadOnlySpan<System::Buffers::NIndex>] { System::Object ^ get(ReadOnlySpan<System::Buffers::NIndex> indexes); void set(ReadOnlySpan<System::Buffers::NIndex> indexes, System::Object ^ value); };
public object? this[scoped ReadOnlySpan<System.Buffers.NIndex> indexes] { get; set; }
member this.Item(ReadOnlySpan<System.Buffers.NIndex>) : obj with get, set
Default Public Property Item(indexes As ReadOnlySpan(Of NIndex)) As Object

Parametri

indexes
ReadOnlySpan<NIndex>

Indici da utilizzare.

Valore della proprietà

Elemento esistente in indexes.

Si applica a

Item[ReadOnlySpan<IntPtr>]

Origine:
ITensor.cs
Origine:
ITensor.cs

Ottiene o imposta l'elemento specificato del tensore.

public:
 property System::Object ^ default[ReadOnlySpan<IntPtr>] { System::Object ^ get(ReadOnlySpan<IntPtr> indexes); void set(ReadOnlySpan<IntPtr> indexes, System::Object ^ value); };
public object? this[scoped ReadOnlySpan<IntPtr> indexes] { get; set; }
member this.Item(ReadOnlySpan<nativeint>) : obj with get, set
Default Public Property Item(indexes As ReadOnlySpan(Of IntPtr)) As Object

Parametri

indexes

ReadOnlySpan<IntPtr>

ReadOnlySpan<nativeint>

Indice dell'elemento per il quale ottenere.

Valore della proprietà

Elemento esistente in indexes.

Eccezioni

Viene soddisfatta una delle condizioni seguenti:

  • indexes non contiene Rank elementi.
  • indexes contiene un elemento negativo o maggiore o uguale alla lunghezza della dimensione corrispondente.

Si applica a