ZLACRT(3)
π ZLACRT(3) β the LAPACK girlies' guide to a teeny tiny complex rotation
ok so this page lives in the LAPACK Library Functions Manual (that's the (3) bit, iykyk) β¨ and it's literally about one small subroutine that does one small slay. Let's get into it π
πΈ SYNOPSIS πΈ
Functions/Subroutines
subroutine ZLACRT (n, cx, incx, cy, incy, c, s)β bestie, this one performs a linear transformation of a pair of complex vectors. that's the whole vibe π«
π¦ Function/Subroutine Documentation π¦
subroutine ZLACRT (integer n, complex*16, dimension( * ) cx, integer incx,
complex*16, dimension( * ) cy, integer incy, complex*16 c, complex*16 s)
ZLACRT performs a linear transformation of a pair of complex vectors. yes. that's it. that's the function. iconic behavior honestly π
π Purpose π
!> !> ZLACRT performs the operation !> !> ( c s )( x ) ==> ( x ) !> ( -s c )( y ) ( y ) !> !> where c and s are complex and the vectors x and y are complex. !>
so it takes your two complex vectors x and y, hits them with that little c/s matrix, and hands them right back. main character rotation energy fr fr π
β¨ Parameters β¨
NβN is INTEGER. it's the number of elements in the vectorsCXandCY. the headcount, basically π«ΆCXβCX is COMPLEX*16 array, dimension (N). on input, this is the vectorx. on output,CXis overwritten withc*x + s*y. bye old values, hello glow-up πINCXβINCX is INTEGER. the increment between successive values ofCX. and bestie,INCX <> 0. that's a hard requirement, no cap πCYβCY is COMPLEX*16 array, dimension (N). on input, this is the vectory. on output,CYis overwritten with-s*x + c*y. she also got a makeover π¦INCYβINCY is INTEGER. the increment between successive values ofCY. andINCY <> 0too. respect the rules or else πCβC is COMPLEX*16. just vibing here, holding half the matrix.SβS is COMPLEX*16. andCandStogether define the matrix:
[ C S ]
[ -S C ]
that's the whole transformation, and it's lowkey gorgeous πΈ
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
shoutout to the whole team, legends only π«Άβ¨
Definition at line 104 of file zlacrt.f. (yes, line 104, write it down π)
π Author π
Generated automatically by Doxygen for LAPACK from the source code. not a human wrote this part, it's giving robot fairy energy π§ββοΈ
okay that's the whole page bestie, mwah π β this was LAPACK Version 3.12.0, from /home/abui...RC/zlacrt.f(3), and yes the path is truncated like that in the original, i don't make the rules π
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms