scipy.linalg.lapack.crot#

scipy.linalg.lapack.crot(x, y, c, s, n=..., offx=0, incx=1, offy=0, incy=1, overwrite_x=0, overwrite_y=0) = <flapack function crot>#

Apply a plane rotation to a pair of complex vectors (LAPACK crot).

Only the complex flavors exist here; for real vectors this is BLAS rot.

Parameters:
xndarray

First vector.

yndarray

Second vector.

cfloat

The cosine. Real even though the vectors are complex.

scomplex

The sine.

nint, optional

How many elements to rotate. Default is as many as x allows from offx at stride incx.

offxint, optional

Index in x to start from. Default is 0.

incxint, optional

Stride through x. Default is 1.

offyint, optional

Index in y to start from. Default is 0.

incyint, optional

Stride through 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 first vector.

yndarray

The rotated second vector.