lar2v#

Functions

void slar2v(
    const INT           n,
          f32* restrict X,
          f32* restrict Y,
          f32* restrict Z,
    const INT           incx,
    const f32* restrict C,
    const f32* restrict S,
    const INT           incc
);
void slar2v(const INT n, f32 *restrict X, f32 *restrict Y, f32 *restrict Z, const INT incx, const f32 *restrict C, const f32 *restrict S, const INT incc)#

SLAR2V applies a vector of real plane rotations from both sides to a sequence of 2-by-2 real symmetric matrices, defined by the elements of the vectors x, y and z.

Parameters

in
n

The number of plane rotations to be applied.

inout
X

The vector x. Array of dimension (1+(n-1)*incx).

inout
Y

The vector y. Array of dimension (1+(n-1)*incx).

inout
Z

The vector z. Array of dimension (1+(n-1)*incx).

in
incx

The increment between elements of X, Y and Z.

in
C

The cosines of the plane rotations. Array of dimension (1+(n-1)*incc).

in
S

The sines of the plane rotations. Array of dimension (1+(n-1)*incc).

in
incc

The increment between elements of C and S.

Functions

void dlar2v(
    const INT           n,
          f64* restrict X,
          f64* restrict Y,
          f64* restrict Z,
    const INT           incx,
    const f64* restrict C,
    const f64* restrict S,
    const INT           incc
);
void dlar2v(const INT n, f64 *restrict X, f64 *restrict Y, f64 *restrict Z, const INT incx, const f64 *restrict C, const f64 *restrict S, const INT incc)#

DLAR2V applies a vector of real plane rotations from both sides to a sequence of 2-by-2 real symmetric matrices, defined by the elements of the vectors x, y and z.

Parameters

in
n

The number of plane rotations to be applied.

inout
X

The vector x. Array of dimension (1+(n-1)*incx).

inout
Y

The vector y. Array of dimension (1+(n-1)*incx).

inout
Z

The vector z. Array of dimension (1+(n-1)*incx).

in
incx

The increment between elements of X, Y and Z.

in
C

The cosines of the plane rotations. Array of dimension (1+(n-1)*incc).

in
S

The sines of the plane rotations. Array of dimension (1+(n-1)*incc).

in
incc

The increment between elements of C and S.

Functions

void clar2v(
    const INT           n,
          c64* restrict X,
          c64* restrict Y,
          c64* restrict Z,
    const INT           incx,
    const f32* restrict C,
    const c64* restrict S,
    const INT           incc
);
void clar2v(const INT n, c64 *restrict X, c64 *restrict Y, c64 *restrict Z, const INT incx, const f32 *restrict C, const c64 *restrict S, const INT incc)#

CLAR2V applies a vector of complex plane rotations with real cosines from both sides to a sequence of 2-by-2 complex Hermitian matrices, defined by the elements of the vectors x, y and z.

For i = 1,2,…,n

( x(i) z(i) ) := ( conjg(z(i)) y(i) )

( c(i) conjg(s(i)) ) ( x(i) z(i) ) ( c(i) -conjg(s(i)) ) ( -s(i) c(i) ) ( conjg(z(i)) y(i) ) ( s(i) c(i) )

Parameters

in
n

The number of plane rotations to be applied.

inout
X

The vector x; the elements of x are assumed to be real. Array of dimension (1+(n-1)*incx).

inout
Y

The vector y; the elements of y are assumed to be real. Array of dimension (1+(n-1)*incx).

inout
Z

The vector z. Array of dimension (1+(n-1)*incx).

in
incx

The increment between elements of X, Y and Z. incx > 0.

in
C

The cosines of the plane rotations. Array of dimension (1+(n-1)*incc).

in
S

The sines of the plane rotations. Array of dimension (1+(n-1)*incc).

in
incc

The increment between elements of C and S. incc > 0.

Functions

void zlar2v(
    const INT            n,
          c128* restrict X,
          c128* restrict Y,
          c128* restrict Z,
    const INT            incx,
    const f64*  restrict C,
    const c128* restrict S,
    const INT            incc
);
void zlar2v(const INT n, c128 *restrict X, c128 *restrict Y, c128 *restrict Z, const INT incx, const f64 *restrict C, const c128 *restrict S, const INT incc)#

ZLAR2V applies a vector of complex plane rotations with real cosines from both sides to a sequence of 2-by-2 complex Hermitian matrices, defined by the elements of the vectors x, y and z.

For i = 1,2,…,n

( x(i) z(i) ) := ( conjg(z(i)) y(i) )

( c(i) conjg(s(i)) ) ( x(i) z(i) ) ( c(i) -conjg(s(i)) ) ( -s(i) c(i) ) ( conjg(z(i)) y(i) ) ( s(i) c(i) )

Parameters

in
n

The number of plane rotations to be applied.

inout
X

The vector x; the elements of x are assumed to be real. Array of dimension (1+(n-1)*incx).

inout
Y

The vector y; the elements of y are assumed to be real. Array of dimension (1+(n-1)*incx).

inout
Z

The vector z. Array of dimension (1+(n-1)*incx).

in
incx

The increment between elements of X, Y and Z. incx > 0.

in
C

The cosines of the plane rotations. Array of dimension (1+(n-1)*incc).

in
S

The sines of the plane rotations. Array of dimension (1+(n-1)*incc).

in
incc

The increment between elements of C and S. incc > 0.