Linear Algebra Operations Extensions.Rotate Method
Definition
Namespace: Numerics.NET.Collections
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
Rotate<T>(ILinearAlgebraOperations<T>, Int32, SpanSlice<T>, SpanSlice<T>, T, T) | Applies a plane rotation. |
Rotate<T, TStorage>(ILinearAlgebraOperations<T>, Int32, TStorage, TStorage, T, T) | Applies a Givens plane rotation. |
Rotate<T>(ILinearAlgebraOperations<T>, Int32, SpanSlice<T>, SpanSlice<T>, T, T)
Applies a plane rotation.
public static void Rotate<T>(
this ILinearAlgebraOperations<T> operations,
int n,
SpanSlice<T> x,
SpanSlice<T> y,
T c,
T s
)
Parameters
- operations ILinearAlgebraOperations<T>
- n Int32
- x SpanSlice<T>
- y SpanSlice<T>
- c T
- s T
Type Parameters
- T
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).Remarks
Further Details:
jack dongarra, linpack, 3/11/78. modified 12/3/93, array(1) declarations changed to array(*)
Authors: Univ. of Tennessee, Univ. of California Berkeley, Univ. of Colorado Denver, NAG Ltd.
Date: November 2011
Rotate<T, TStorage>(ILinearAlgebraOperations<T>, Int32, TStorage, TStorage, T, T)
Applies a Givens plane rotation.
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