CUNT01(3)

πŸ“¦ version 3.12.0, in opensuse-leap 16.0

πŸ’– CUNT01(3) β€” LAPACK Library Functions Manual πŸ’–

okay bestie, welcome to the <pink>CUNT01</pink> page. It’s giving β€œtiny subroutine, very serious linear algebra,” and we’re gonna get through every single detail together. 🫢

🌸 NAME 🌸

/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/EIG/cunt01.f

✨ SYNOPSIS ✨

🌟 Functions/Subroutines 🌟

subroutine CUNT01 (rowcol, m, n, u, ldu, work, lwork, rwork, resid)
    CUNT01

πŸ’… Function/Subroutine Documentation πŸ’…

subroutine CUNT01 (character rowcol, integer m, integer n, complex,
    dimension( ldu, * ) u, integer ldu, complex, dimension( * ) work,
    integer lwork, real, dimension( * ) rwork, real resid)

CUNT01 β€” yes, that’s the name, and it’s iconic. πŸ‘‘

πŸŽ€ Purpose πŸŽ€

CUNT01 checks that the matrix U is unitary by computing the ratio:

RESID = norm( I - U*U' ) / ( n * EPS ), if ROWCOL = 'R',
or
RESID = norm( I - U'*U ) / ( m * EPS ), if ROWCOL = 'C'.

Alternatively, if there isn’t sufficient workspace to form I - U*U' or I - U'*U, the ratio is computed as:

RESID = abs( I - U*U' ) / ( n * EPS ), if ROWCOL = 'R',
or
RESID = abs( I - U'*U ) / ( m * EPS ), if ROWCOL = 'C'.

where EPS is the machine precision. ROWCOL is used only if m = n; if m > n, ROWCOL is assumed to be 'C', and if m < n, ROWCOL is assumed to be 'R'.

The source wraps these lines in the usual !> Doxygen comment markers, because of course it does πŸ’…

πŸ¦‹ Parameters πŸ¦‹

  • ROWCOL β€” ROWCOL is CHARACTER. It says whether the rows or columns of U should be checked for orthogonality. Used only if M = N. = 'R': check for orthogonal rows of U. = 'C': check for orthogonal columns of U.
  • M β€” M is INTEGER. The number of rows of the matrix U.
  • N β€” N is INTEGER. The number of columns of the matrix U.
  • U β€” U is COMPLEX array, dimension (LDU,N). This is the unitary matrix U. U is checked for orthogonal columns if m > n or if m = n and ROWCOL = 'C'. U is checked for orthogonal rows if m < n or if m = n and ROWCOL = 'R'.
  • LDU β€” LDU is INTEGER. The leading dimension of the array U. LDU >= max(1,M).
  • WORK β€” WORK is COMPLEX array, dimension (LWORK).
  • LWORK β€” LWORK is INTEGER. The length of the array WORK. For best performance, LWORK should be at least N*N if ROWCOL = 'C' or M*M if ROWCOL = 'R', but the test will be done even if LWORK is 0.
  • RWORK β€” RWORK is REAL array, dimension (min(M,N)). Used only if LWORK is large enough to use the Level 3 BLAS code.
  • RESID β€” RESID is REAL. RESID = norm( I - U * U' ) / ( n * EPS ), if ROWCOL = 'R', or RESID = norm( I - U' * U ) / ( m * EPS ), if ROWCOL = 'C'.

πŸ‘‘ Author πŸ‘‘

Univ. of Tennessee

Univ. of California Berkeley

Univ. of Colorado Denver

NAG Ltd.

πŸ“ Definition at line 124 of file cunt01.f. πŸ“

🌈 Author 🌈

Generated automatically by Doxygen for LAPACK from the source code.


xoxo, your LAPACK Version 3.12.0 bestie, served fresh from /home/abui...IG/cunt01.f(3) πŸ«Άβœ¨πŸ’…

πŸ“¦ where this page comes from