LinearAlgebraOperationsExtensions.Rotate<T, TStorage>(ILinearAlgebraOperations<T>, Int32, TStorage, TStorage, T, T) Method

Applies a Givens plane rotation.

Definition

Namespace: Extreme.Collections
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 9.0.0
C#
public static void Rotate<T, TStorage>(
	this ILinearAlgebraOperations<T> operations,
	int n,
	TStorage x,
	TStorage y,
	T c,
	T s
)
where TStorage : Object, IStorageSlice<T>

Parameters

operations  ILinearAlgebraOperations<T>
The linear algebra operations instance used to perform the calculation.
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

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ILinearAlgebraOperations<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also