ILinearAlgebraOperations<T>.Rotate Method

Applies a Givens plane rotation.

Definition

Namespace: Numerics.NET.LinearAlgebra.Implementation
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
C#
void Rotate(
	int n,
	Span<T> x,
	int incx,
	Span<T> y,
	int incy,
	T c,
	T s
)

Parameters

n  Int32
The number of elements in the vectors x and y.
x  Span<T>
A span containing the elements of the vector x.
incx  Int32
The distance between elements in x.
y  Span<T>
A span containing the elements of the vector y.
incy  Int32
The distance between elements in 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.

See Also