Tensor<T>.Slice Method
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.
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 |
- 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
.NET 9 (package-provided) dan .NET 8 (package-provided)
Produk | Versi |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
- 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
.NET 9 (package-provided) dan .NET 8 (package-provided)
Produk | Versi |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
- 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
.NET 9 (package-provided) dan .NET 8 (package-provided)
Produk | Versi |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET maklum balas
.NET ialah projek sumber terbuka. Pilih pautan untuk memberikan maklum balas: