Linear Algebra Operations.Rotate<T, TStorage> Method
Applies a Givens plane rotation.
Definition
Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public static void Rotate<T, TStorage>(
int n,
TStorage x,
TStorage y,
T c,
T s
)
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.
- c T
- The first rotation element, the cosine of the rotation angle.
- s T
- The second rotation element, the sine of the rotation angle.
Type Parameters
- T
- TStorage