Tensor.Swap<T> Method
Swaps the elements of two tensors.
Definition
Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.3
C#
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.3
public static void Swap<T>(
Tensor<T> first,
Tensor<T> second
)
Parameters
- first Tensor<T>
- A tensor whose elements serve as the first argument to the function.
- second Tensor<T>
- A tensor whose elements serve as the second argument to the function.
Type Parameters
- T
- The type of the elements of the tensors.
Exceptions
Argument | first is null -or- second is null |
Dimension | The shape of first does not equal the shape of second. |