Tensor<T>.GetSpan Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
| Nom | Description |
|---|---|
| GetSpan(ReadOnlySpan<NIndex>, Int32) |
Retourne une étendue qui commence à l’index spécifié et contient le nombre spécifié d’éléments. |
| GetSpan(ReadOnlySpan<IntPtr>, Int32) |
Retourne une étendue qui commence à l’index spécifié et contient le nombre spécifié d’éléments. |
GetSpan(ReadOnlySpan<NIndex>, Int32)
- Source:
- Tensor_1.cs
- Source:
- Tensor_1.cs
Retourne une étendue qui commence à l’index spécifié et contient le nombre spécifié d’éléments.
public:
virtual Span<T> GetSpan(ReadOnlySpan<System::Buffers::NIndex> startIndexes, int length);
public Span<T> GetSpan(scoped ReadOnlySpan<System.Buffers.NIndex> startIndexes, int length);
abstract member GetSpan : ReadOnlySpan<System.Buffers.NIndex> * int -> Span<'T>
override this.GetSpan : ReadOnlySpan<System.Buffers.NIndex> * int -> Span<'T>
Public Function GetSpan (startIndexes As ReadOnlySpan(Of NIndex), length As Integer) As Span(Of T)
Paramètres
- startIndexes
- ReadOnlySpan<NIndex>
Index auquel l’étendue doit démarrer.
- length
- Int32
Longueur de l’étendue à retourner.
Retours
Étendue qui se compose d’éléments length du tenseur actuel à partir de startIndexes.
Implémente
S’applique à
GetSpan(ReadOnlySpan<IntPtr>, Int32)
- Source:
- Tensor_1.cs
- Source:
- Tensor_1.cs
Retourne une étendue qui commence à l’index spécifié et contient le nombre spécifié d’éléments.
public:
virtual Span<T> GetSpan(ReadOnlySpan<IntPtr> startIndexes, int length);
public Span<T> GetSpan(scoped ReadOnlySpan<IntPtr> startIndexes, int length);
abstract member GetSpan : ReadOnlySpan<nativeint> * int -> Span<'T>
override this.GetSpan : ReadOnlySpan<nativeint> * int -> Span<'T>
Public Function GetSpan (startIndexes As ReadOnlySpan(Of IntPtr), length As Integer) As Span(Of T)
Paramètres
- startIndexes
-
ReadOnlySpan<nativeint>
Index auquel l’étendue doit démarrer.
- length
- Int32
Longueur de l’étendue à retourner.
Retours
Étendue qui se compose d’éléments length du tenseur actuel à partir de startIndexes.