Tensor.Decrement 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
| Decrement<T>(ReadOnlyTensorSpan<T>) |
Performs an decrement on a tensor. |
| Decrement<T>(ReadOnlyTensorSpan<T>, TensorSpan<T>) |
Performs an decrement on a tensor. |
Decrement<T>(ReadOnlyTensorSpan<T>)
- Source:
- Tensor.op_Decrement.cs
Performs an decrement on a tensor.
public:
generic <typename T>
where T : System::Numerics::IDecrementOperators<T> static System::Numerics::Tensors::Tensor<T> ^ Decrement(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x);
public static System.Numerics.Tensors.Tensor<T> Decrement<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IDecrementOperators<T>;
static member Decrement : ReadOnlyTensorSpan -> System.Numerics.Tensors.Tensor<'T (requires 'T :> System.Numerics.IDecrementOperators<'T>)> (requires 'T :> System.Numerics.IDecrementOperators<'T>)
Public Function Decrement(Of T As IDecrementOperators(Of T)) (ByRef x As ReadOnlyTensorSpan(Of T)) As Tensor(Of T)
Type Parameters
- T
The type of the elements in the tensor.
Parameters
The tensor to decrement.
Returns
A new tensor containing the result of --x.
Applies to
Decrement<T>(ReadOnlyTensorSpan<T>, TensorSpan<T>)
- Source:
- Tensor.op_Decrement.cs
Performs an decrement on a tensor.
public:
generic <typename T>
where T : System::Numerics::IDecrementOperators<T> static System::Numerics::Tensors::TensorSpan<T> ^ Decrement(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, System::Numerics::Tensors::TensorSpan<T> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Decrement<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IDecrementOperators<T>;
static member Decrement : ReadOnlyTensorSpan * TensorSpan -> TensorSpan (requires 'T :> System.Numerics.IDecrementOperators<'T>)
Public Function Decrement(Of T As IDecrementOperators(Of T)) (ByRef x As ReadOnlyTensorSpan(Of T), ByRef destination As TensorSpan(Of T)) As TensorSpan(Of T)
Type Parameters
- T
The type of the elements in the tensor.
Parameters
The tensor to decrement.
- destination
- TensorSpan<T>
The destination where the result of --x is written.
Returns
A reference to destination.
Exceptions
The shapes of x and destination are not compatible.