scipy.linalg.blas.csrot#
- scipy.linalg.blas.csrot(x, y, c, s, n=None, offx=0, incx=1, offy=0, incy=1, overwrite_x=0, overwrite_y=0) = <fblas function csrot>#
Apply a Givens plane rotation to x and y:
x, y = c*x + s*y, c*y - s*x(BLAScsrot).- Parameters:
- xndarray
Input/output vector; on exit it holds
c*x + s*y.- yndarray
Input/output vector; on exit it holds
c*y - s*x.- cfloat
Cosine of the rotation (real, even though x and y are complex).
- sfloat
Sine of the rotation (real, even though x and y are complex).
- nint, optional
Number of elements to process. Default is the whole vector.
- offxint, optional
Index of the first element of x to use. Default is 0.
- incxint, optional
Stride between successive elements of x. Default is 1.
- offyint, optional
Index of the first element of y to use. Default is 0.
- incyint, optional
Stride between successive elements of y. Default is 1.
- overwrite_xint, optional
If nonzero, x may be overwritten in place. Default is 0.
- overwrite_yint, optional
If nonzero, y may be overwritten in place. Default is 0.
- Returns:
- xndarray
The rotated vector x.
- yndarray
The rotated vector y.