Κοινή χρήση μέσω


Tensor.Reverse Method

Definition

Overloads

Reverse<T>(ReadOnlyTensorSpan<T>)

Reverse the order of elements in the tensor. The shape of the tensor is preserved, but the elements are reordered.

Reverse<T>(ReadOnlyTensorSpan<T>, TensorSpan<T>)

Reverse the order of elements in the tensor. The shape of the tensor is preserved, but the elements are reordered.

Reverse<T>(ReadOnlyTensorSpan<T>)

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Reverse the order of elements in the tensor. The shape of the tensor is preserved, but the elements are reordered.

public:
generic <typename T>
 static System::Numerics::Tensors::Tensor<T> ^ Reverse(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % tensor);
public static System.Numerics.Tensors.Tensor<T> Reverse<T> (in System.Numerics.Tensors.ReadOnlyTensorSpan<T> tensor);
static member Reverse : ReadOnlyTensorSpan -> System.Numerics.Tensors.Tensor<'T>
Public Function Reverse(Of T) (ByRef tensor As ReadOnlyTensorSpan(Of T)) As Tensor(Of T)

Type Parameters

T

Parameters

Returns

Applies to

Reverse<T>(ReadOnlyTensorSpan<T>, TensorSpan<T>)

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Reverse the order of elements in the tensor. The shape of the tensor is preserved, but the elements are reordered.

public:
generic <typename T>
 static System::Numerics::Tensors::TensorSpan<T> ^ Reverse(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % tensor, System::Numerics::Tensors::TensorSpan<T> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Reverse<T> (scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> tensor, in System.Numerics.Tensors.TensorSpan<T> destination);
static member Reverse : ReadOnlyTensorSpan * TensorSpan -> TensorSpan
Public Function Reverse(Of T) (ByRef tensor As ReadOnlyTensorSpan(Of T), ByRef destination As TensorSpan(Of T)) As TensorSpan(Of T)

Type Parameters

T

Parameters

destination
TensorSpan<T>

Returns

Applies to