Tensor.Reverse 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
Reverse<T>(ReadOnlyTensorSpan<T>) |
Reverse the order of elements in the |
Reverse<T>(ReadOnlyTensorSpan<T>, TensorSpan<T>) |
Reverse the order of elements in the |
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
- tensor
- ReadOnlyTensorSpan<T>
Input Tensor<T>.
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
- tensor
- ReadOnlyTensorSpan<T>
Input TensorSpan<T>.
- destination
- TensorSpan<T>