Linear Algebra Operations.Swap<T, TStorage> Method
Exchanges the elements of two vectors.
Definition
Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
public static void Swap<T, TStorage>(
int n,
TStorage x,
TStorage y
)
where TStorage : Object, IStorageSlice<T>
Parameters
- n Int32
- The number of elements in the vectors x and y.
- x TStorage
- A reference to a one-dimensional array containing the elements of the vector x.
- y TStorage
- A reference to a one-dimensional array containing the elements of the vector y.
Type Parameters
- T
- TStorage