Tensor.Increment 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
| Increment<T>(ReadOnlyTensorSpan<T>, TensorSpan<T>) |
Performs an increment on a tensor. |
| Increment<T>(ReadOnlyTensorSpan<T>) |
Performs an increment on a tensor. |
Increment<T>(ReadOnlyTensorSpan<T>, TensorSpan<T>)
- Source:
- Tensor.op_Increment.cs
Performs an increment on a tensor.
public:
generic <typename T>
where T : System::Numerics::IIncrementOperators<T> static System::Numerics::Tensors::TensorSpan<T> ^ Increment(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, System::Numerics::Tensors::TensorSpan<T> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Increment<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IIncrementOperators<T>;
static member Increment : ReadOnlyTensorSpan * TensorSpan -> TensorSpan (requires 'T :> System.Numerics.IIncrementOperators<'T>)
Public Function Increment(Of T As IIncrementOperators(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 increment.
- 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.
Applies to
Increment<T>(ReadOnlyTensorSpan<T>)
- Source:
- Tensor.op_Increment.cs
Performs an increment on a tensor.
public:
generic <typename T>
where T : System::Numerics::IIncrementOperators<T> static System::Numerics::Tensors::Tensor<T> ^ Increment(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x);
public static System.Numerics.Tensors.Tensor<T> Increment<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IIncrementOperators<T>;
static member Increment : ReadOnlyTensorSpan -> System.Numerics.Tensors.Tensor<'T (requires 'T :> System.Numerics.IIncrementOperators<'T>)> (requires 'T :> System.Numerics.IIncrementOperators<'T>)
Public Function Increment(Of T As IIncrementOperators(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 increment.
Returns
A new tensor containing the result of ++x.