Tensor<T>.Slice Method
Definition
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.
Overloads
Slice(ReadOnlySpan<NIndex>) |
Forms a slice out of the given tensor. |
Slice(ReadOnlySpan<NRange>) |
Forms a slice out of the given tensor. |
Slice(ReadOnlySpan<IntPtr>) |
Forms a slice out of the given tensor. |
Slice(ReadOnlySpan<NIndex>)
- Source:
- Tensor.cs
Forms a slice out of the given tensor.
public:
virtual System::Numerics::Tensors::Tensor<T> ^ Slice(ReadOnlySpan<System::Buffers::NIndex> startIndex);
public System.Numerics.Tensors.Tensor<T> Slice (scoped ReadOnlySpan<System.Buffers.NIndex> startIndex);
abstract member Slice : ReadOnlySpan<System.Buffers.NIndex> -> System.Numerics.Tensors.Tensor<'T>
override this.Slice : ReadOnlySpan<System.Buffers.NIndex> -> System.Numerics.Tensors.Tensor<'T>
Public Function Slice (startIndex As ReadOnlySpan(Of NIndex)) As Tensor(Of T)
Parameters
- startIndex
- ReadOnlySpan<NIndex>
The start indexes for the slice.
Returns
Tensor<T> as a copy of the provided ranges.
Implements
Applies to
Slice(ReadOnlySpan<NRange>)
- Source:
- Tensor.cs
Forms a slice out of the given tensor.
public:
virtual System::Numerics::Tensors::Tensor<T> ^ Slice(ReadOnlySpan<System::Buffers::NRange> start);
public System.Numerics.Tensors.Tensor<T> Slice (scoped ReadOnlySpan<System.Buffers.NRange> start);
abstract member Slice : ReadOnlySpan<System.Buffers.NRange> -> System.Numerics.Tensors.Tensor<'T>
override this.Slice : ReadOnlySpan<System.Buffers.NRange> -> System.Numerics.Tensors.Tensor<'T>
Public Function Slice (start As ReadOnlySpan(Of NRange)) As Tensor(Of T)
Parameters
- start
- ReadOnlySpan<NRange>
The ranges for the slice.
Returns
Tensor<T> as a copy of the provided ranges.
Implements
Applies to
Slice(ReadOnlySpan<IntPtr>)
- Source:
- Tensor.cs
Forms a slice out of the given tensor.
public:
virtual System::Numerics::Tensors::Tensor<T> ^ Slice(ReadOnlySpan<IntPtr> start);
public System.Numerics.Tensors.Tensor<T> Slice (scoped ReadOnlySpan<IntPtr> start);
abstract member Slice : ReadOnlySpan<nativeint> -> System.Numerics.Tensors.Tensor<'T>
override this.Slice : ReadOnlySpan<nativeint> -> System.Numerics.Tensors.Tensor<'T>
Public Function Slice (start As ReadOnlySpan(Of IntPtr)) As Tensor(Of T)
Parameters
- start
-
ReadOnlySpan<nativeint>
The start indexes for the slice.
Returns
Tensor<T> as a copy of the provided ranges.
Implements
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Tickets als Feedbackmechanismus für Inhalte auslaufen lassen und es durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unter:Einreichen und Feedback anzeigen für