Share 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_1.cs
Source:
Tensor.cs

Forms a slice out of the given tensor

public:
 virtual System::Numerics::Tensors::Tensor<T> ^ Slice(ReadOnlySpan<System::Buffers::NIndex> startIndexes);
public System.Numerics.Tensors.Tensor<T> Slice(scoped ReadOnlySpan<System.Buffers.NIndex> startIndexes);
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 (startIndexes As ReadOnlySpan(Of NIndex)) As Tensor(Of T)

Parameters

startIndexes
ReadOnlySpan<NIndex>

The indexes at which to begin the slice.

Returns

Tensor<T> without copying the provided ranges.

Implements

Applies to

Slice(ReadOnlySpan<NRange>)

Source:
Tensor_1.cs
Source:
Tensor.cs

Forms a slice out of the given tensor

public:
 virtual System::Numerics::Tensors::Tensor<T> ^ Slice(ReadOnlySpan<System::Buffers::NRange> ranges);
public System.Numerics.Tensors.Tensor<T> Slice(scoped ReadOnlySpan<System.Buffers.NRange> ranges);
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 (ranges As ReadOnlySpan(Of NRange)) As Tensor(Of T)

Parameters

ranges
ReadOnlySpan<NRange>

The range of which to slice.

Returns

Tensor<T> without copying the provided ranges.

Implements

Applies to

Slice(ReadOnlySpan<IntPtr>)

Source:
Tensor_1.cs
Source:
Tensor.cs

Forms a slice out of the given tensor

public:
 virtual System::Numerics::Tensors::Tensor<T> ^ Slice(ReadOnlySpan<IntPtr> startIndexes);
public System.Numerics.Tensors.Tensor<T> Slice(scoped ReadOnlySpan<IntPtr> startIndexes);
abstract member Slice : ReadOnlySpan<nativeint> -> System.Numerics.Tensors.Tensor<'T>
override this.Slice : ReadOnlySpan<nativeint> -> System.Numerics.Tensors.Tensor<'T>
Public Function Slice (startIndexes As ReadOnlySpan(Of IntPtr)) As Tensor(Of T)

Parameters

startIndexes

ReadOnlySpan<IntPtr>

ReadOnlySpan<nativeint>

The indexes at which to begin the slice.

Returns

Tensor<T> without copying the provided ranges.

Implements

Applies to