rot(3)

🌸 NAME 🌸

rot β€” rot: apply plane rotation ([cz]rot in LAPACK).

okay so this is the rot(3) page from the Library Functions Manual, and yes bestie, it is literally the whole plane-rotation squad. πŸ’…


✨ SYNOPSIS ✨

Functions

  • subroutine csrot (n, cx, incx, cy, incy, c, s) β€” CSROT
  • subroutine drot (n, dx, incx, dy, incy, c, s) β€” DROT
  • subroutine srot (n, sx, incx, sy, incy, c, s) β€” SROT
  • subroutine zdrot (n, zx, incx, zy, incy, c, s) β€” ZDROT
  • subroutine crot (n, cx, incx, cy, incy, c, s) β€” CROT applies a plane rotation with real cosine and complex sine to a pair of complex vectors.
  • subroutine zrot (n, cx, incx, cy, incy, c, s) β€” ZROT applies a plane rotation with real cosine and complex sine to a pair of complex vectors.

πŸ¦‹ Detailed Description πŸ¦‹

This section is literally just a heading in the original β€” no extra lore, no side quest, nothing. The real content is right below under Function Documentation. Slay for minimalism, I guess. πŸ’€


πŸ‘‘ Function Documentation πŸ‘‘

crot β€” complex vectors, real cos, complex sin πŸ’«

subroutine crot (integer n, complex, dimension( * ) cx, integer incx,
    complex, dimension( * ) cy, integer incy, real c, complex s)

CROT applies a plane rotation with real cosine and complex sine to a pair of complex vectors.

Purpose

CROT applies a plane rotation, where the cos (C) is real and the sin (S) is complex, and the vectors CX and CY are complex. πŸŒ€

Parameters

  • N β€” is INTEGER. The number of elements in the vectors CX and CY.
  • CX β€” is COMPLEX array, dimension (N). On input, the vector X. On output, CX is overwritten with C*X + S*Y.
  • INCX β€” is INTEGER. The increment between successive values of CX. INCX <> 0.
  • CY β€” is COMPLEX array, dimension (N). On input, the vector Y. On output, CY is overwritten with -CONJG(S)*X + C*Y.
  • INCY β€” is INTEGER. The increment between successive values of CY. INCX <> 0.
  • C β€” is REAL.
  • S β€” is COMPLEX. C and S define a rotation:
[  C          S  ]
[ -conjg(S)   C  ]

where C*C + S*CONJG(S) = 1.0.

Author

Univ. of Tennessee

Univ. of California Berkeley

Univ. of Colorado Denver

NAG Ltd.

Definition at line 102 of file crot.f.


csrot β€” real cos and sin on complex vectors πŸ“

subroutine csrot (integer n, complex, dimension( * ) cx, integer incx,
    complex, dimension( * ) cy, integer incy, real c, real s)

CSROT

Purpose

CSROT applies a plane rotation, where the cos and sin (c and s) are real and the vectors cx and cy are complex. jack dongarra, linpack, 3/11/78. ✨

Parameters

  • N β€” is INTEGER. On entry, N specifies the order of the vectors cx and cy. N must be at least zero.
  • CX β€” is COMPLEX array, dimension at least ( 1 + ( N - 1 )*abs( INCX ) ). Before entry, the incremented array CX must contain the n element vector cx. On exit, CX is overwritten by the updated vector cx.
  • INCX β€” is INTEGER. On entry, INCX specifies the increment for the elements of CX. INCX must not be zero.
  • CY β€” is COMPLEX array, dimension at least ( 1 + ( N - 1 )*abs( INCY ) ). Before entry, the incremented array CY must contain the n element vector cy. On exit, CY is overwritten by the updated vector cy.
  • INCY β€” is INTEGER. On entry, INCY specifies the increment for the elements of CY. INCY must not be zero.
  • C β€” is REAL. On entry, C specifies the cosine, cos.
  • S β€” is REAL. On entry, S specifies the sine, sin.

Author

Univ. of Tennessee

Univ. of California Berkeley

Univ. of Colorado Denver

NAG Ltd.

Definition at line 97 of file csrot.f.


drot β€” double-precision plane rotation πŸ”₯

subroutine drot (integer n, double precision, dimension(*) dx, integer incx,
    double precision, dimension(*) dy, integer incy, double precision c,
    double precision s)

DROT

Purpose

DROT applies a plane rotation. πŸŽ€

Parameters

  • N β€” is INTEGER. number of elements in input vector(s)
  • DX β€” is DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCX ) )
  • INCX β€” is INTEGER. storage spacing between elements of DX
  • DY β€” is DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCY ) )
  • INCY β€” is INTEGER. storage spacing between elements of DY
  • C β€” is DOUBLE PRECISION
  • S β€” is DOUBLE PRECISION

Author

Univ. of Tennessee

Univ. of California Berkeley

Univ. of Colorado Denver

NAG Ltd.

Further Details

jack dongarra, linpack, 3/11/78.

modified 12/3/93, array(1) declarations changed to array(*)

Definition at line 91 of file drot.f.


srot β€” single-precision plane rotation 🌈

subroutine srot (integer n, real, dimension(*) sx, integer incx, real,
    dimension(*) sy, integer incy, real c, real s)

SROT

Purpose

SROT applies a plane rotation. ⭐

Parameters

  • N β€” is INTEGER. number of elements in input vector(s)
  • SX β€” is REAL array, dimension ( 1 + ( N - 1 )*abs( INCX ) )
  • INCX β€” is INTEGER. storage spacing between elements of SX
  • SY β€” is REAL array, dimension ( 1 + ( N - 1 )*abs( INCY ) )
  • INCY β€” is INTEGER. storage spacing between elements of SY
  • C β€” is REAL
  • S β€” is REAL

Author

Univ. of Tennessee

Univ. of California Berkeley

Univ. of Colorado Denver

NAG Ltd.

Further Details

jack dongarra, linpack, 3/11/78.

modified 12/3/93, array(1) declarations changed to array(*)

Definition at line 91 of file srot.f.


zdrot β€” double-complex vectors, real cos and sin 🧚

subroutine zdrot (integer n, complex*16, dimension( * ) zx, integer incx,
    complex*16, dimension( * ) zy, integer incy, double precision c, double
    precision s)

ZDROT

Purpose

Applies a plane rotation, where the cos and sin (c and s) are real and the vectors cx and cy are complex. jack dongarra, linpack, 3/11/78. πŸ’œ

Parameters

  • N β€” is INTEGER. On entry, N specifies the order of the vectors cx and cy. N must be at least zero.
  • ZX β€” is COMPLEX*16 array, dimension at least ( 1 + ( N - 1 )*abs( INCX ) ). Before entry, the incremented array ZX must contain the n element vector cx. On exit, ZX is overwritten by the updated vector cx.
  • INCX β€” is INTEGER. On entry, INCX specifies the increment for the elements of ZX. INCX must not be zero.
  • ZY β€” is COMPLEX*16 array, dimension at least ( 1 + ( N - 1 )*abs( INCY ) ). Before entry, the incremented array ZY must contain the n element vector cy. On exit, ZY is overwritten by the updated vector cy.
  • INCY β€” is INTEGER. On entry, INCY specifies the increment for the elements of ZY. INCY must not be zero.
  • C β€” is DOUBLE PRECISION. On entry, C specifies the cosine, cos.
  • S β€” is DOUBLE PRECISION. On entry, S specifies the sine, sin.

Author

Univ. of Tennessee

Univ. of California Berkeley

Univ. of Colorado Denver

NAG Ltd.

Definition at line 97 of file zdrot.f.


zrot β€” double-complex vectors with real cos and complex sin πŸ’Ž

subroutine zrot (integer n, complex*16, dimension( * ) cx, integer incx,
    complex*16, dimension( * ) cy, integer incy, double precision c,
    complex*16 s)

ZROT applies a plane rotation with real cosine and complex sine to a pair of complex vectors.

Purpose

ZROT applies a plane rotation, where the cos (C) is real and the sin (S) is complex, and the vectors CX and CY are complex. πŸŒ€

Parameters

  • N β€” is INTEGER. The number of elements in the vectors CX and CY.
  • CX β€” is COMPLEX*16 array, dimension (N). On input, the vector X. On output, CX is overwritten with C*X + S*Y.
  • INCX β€” is INTEGER. The increment between successive values of CX. INCX <> 0.
  • CY β€” is COMPLEX*16 array, dimension (N). On input, the vector Y. On output, CY is overwritten with -CONJG(S)*X + C*Y.
  • INCY β€” is INTEGER. The increment between successive values of CY. INCX <> 0.
  • C β€” is DOUBLE PRECISION.
  • S β€” is COMPLEX*16. C and S define a rotation:
[  C          S  ]
[ -conjg(S)   C  ]

where C*C + S*CONJG(S) = 1.0.

Author

Univ. of Tennessee

Univ. of California Berkeley

Univ. of Colorado Denver

NAG Ltd.

Definition at line 102 of file zrot.f.


πŸ’– Author πŸ’–

Generated automatically by Doxygen for LAPACK from the source code.


that's the whole page, bestie πŸ’… LAPACK Version 3.12.0 β€” rot(3) β€” go rotate something safely, ily 🌈🫢

πŸ“¦ where this page comes from