Delen via


Tensor<T>.Slice Method

Definition

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
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
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
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<IntPtr>

ReadOnlySpan<nativeint>

The start indexes for the slice

Returns

Tensor<T> as a copy of the provided ranges.

Implements

Applies to