CBBCSD(3)

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

πŸŽ€ CBBCSD(3) πŸŽ€

okay so this is from the Library Functions Manual (manual name folded in right here, bestie πŸ’–). The page is headed CBBCSD(3), and we're about to get into a Fortran subroutine that does CS decomposition. Buckle up, it's giving linear algebra main character energy. πŸ¦‹

πŸ’– NAME πŸ’–

/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/cbbcsd.f

that's it. that's the NAME section. iconic minimalism, no cap. πŸ’…

🌸 SYNOPSIS 🌸

Functions/Subroutines

here's the callable baddie in all its Fortran glory, exactly as written:

       subroutine CBBCSD (jobu1, jobu2, jobv1t, jobv2t, trans, m, p, q, theta,
           phi, u1, ldu1, u2, ldu2, v1t, ldv1t, v2t, ldv2t, b11d, b11e, b12d,
           b12e, b21d, b21e, b22d, b22e, rwork, lrwork, info)
           CBBCSD

πŸ¦‹ Function/Subroutine Documentation πŸ¦‹

the full typed-out signature, because we're not skipping the boring-looking bits:

       subroutine CBBCSD (character jobu1, character jobu2, character jobv1t,
           character jobv2t, character trans, integer m, integer p, integer q,
           real, dimension( * ) theta, real, dimension( * ) phi, complex,
           dimension( ldu1, * ) u1, integer ldu1, complex, dimension( ldu2, * ) u2,
           integer ldu2, complex, dimension( ldv1t, * ) v1t, integer ldv1t,
           complex, dimension( ldv2t, * ) v2t, integer ldv2t, real, dimension( * )
           b11d, real, dimension( * ) b11e, real, dimension( * ) b12d, real,
           dimension( * ) b12e, real, dimension( * ) b21d, real, dimension( * )
           b21e, real, dimension( * ) b22d, real, dimension( * ) b22e, real,
           dimension( * ) rwork, integer lrwork, integer info)
           CBBCSD

✨ Purpose ✨

bestie, CBBCSD computes the CS decomposition of a unitary matrix in bidiagonal-block form. The matrix X is set up like this:

    [ B11 | B12 0  0 ]
    [  0  |  0 -I  0 ]
X = [----------------]
    [ B21 | B22 0  0 ]
    [  0  |  0  0  I ]

and the decomposition is this whole mood:

                              [  C | -S  0  0 ]
                  [ U1 |    ] [  0 |  0 -I  0 ] [ V1 |    ]**H
                = [---------] [---------------] [---------]   .
                  [    | U2 ] [  S |  C  0  0 ] [    | V2 ]
                              [  0 |  0  0  I ]

X is M-by-M, its top-left block is P-by-Q, and Q must be no larger than P, M-P, or M-Q. (If Q is not the smallest index, then X must be transposed and/or permuted. This can be done in constant time using the TRANS and SIGNS options. See CUNCSD for details.)

The bidiagonal matrices B11, B12, B21, and B22 are represented implicitly by angles THETA(1:Q) and PHI(1:Q-1).

The unitary matrices U1, U2, V1T, and V2T are input/output. The input matrices are pre- or post-multiplied by the appropriate singular vector matrices.

πŸ’… Parameters πŸ’…

  • JOBU1 β€” JOBU1 is CHARACTER. = 'Y': U1 is updated; otherwise: U1 is not updated.
  • JOBU2 β€” JOBU2 is CHARACTER. = 'Y': U2 is updated; otherwise: U2 is not updated.
  • JOBV1T β€” JOBV1T is CHARACTER. = 'Y': V1T is updated; otherwise: V1T is not updated.
  • JOBV2T β€” JOBV2T is CHARACTER. = 'Y': V2T is updated; otherwise: V2T is not updated.
  • TRANS β€” TRANS is CHARACTER. = 'T': X, U1, U2, V1T, and V2T are stored in row-major order; otherwise: X, U1, U2, V1T, and V2T are stored in column-major order.
  • M β€” M is INTEGER. The number of rows and columns in X, the unitary matrix in bidiagonal-block form.
  • P β€” P is INTEGER. The number of rows in the top-left block of X. 0 <= P <= M.
  • Q β€” Q is INTEGER. The number of columns in the top-left block of X. 0 <= Q <= MIN(P,M-P,M-Q).
  • THETA β€” THETA is REAL array, dimension (Q). On entry, the angles THETA(1),...,THETA(Q) that, along with PHI(1), ...,PHI(Q-1), define the matrix in bidiagonal-block form. On exit, the angles whose cosines and sines define the diagonal blocks in the CS decomposition.
  • PHI β€” PHI is REAL array, dimension (Q-1). The angles PHI(1),...,PHI(Q-1) that, along with THETA(1),...,THETA(Q), define the matrix in bidiagonal-block form.
  • U1 β€” U1 is COMPLEX array, dimension (LDU1,P). On entry, a P-by-P matrix. On exit, U1 is postmultiplied by the left singular vector matrix common to [ B11 ; 0 ] and [ B12 0 0 ; 0 -I 0 0 ].
  • LDU1 β€” LDU1 is INTEGER. The leading dimension of the array U1, LDU1 >= MAX(1,P).
  • U2 β€” U2 is COMPLEX array, dimension (LDU2,M-P). On entry, an (M-P)-by-(M-P) matrix. On exit, U2 is postmultiplied by the left singular vector matrix common to [ B21 ; 0 ] and [ B22 0 0 ; 0 0 I ].
  • LDU2 β€” LDU2 is INTEGER. The leading dimension of the array U2, LDU2 >= MAX(1,M-P).
  • V1T β€” V1T is COMPLEX array, dimension (LDV1T,Q). On entry, a Q-by-Q matrix. On exit, V1T is premultiplied by the conjugate transpose of the right singular vector matrix common to [ B11 ; 0 ] and [ B21 ; 0 ].
  • LDV1T β€” LDV1T is INTEGER. The leading dimension of the array V1T, LDV1T >= MAX(1,Q).
  • V2T β€” V2T is COMPLEX array, dimension (LDV2T,M-Q). On entry, an (M-Q)-by-(M-Q) matrix. On exit, V2T is premultiplied by the conjugate transpose of the right singular vector matrix common to [ B12 0 0 ; 0 -I 0 ] and [ B22 0 0 ; 0 0 I ].
  • LDV2T β€” LDV2T is INTEGER. The leading dimension of the array V2T, LDV2T >= MAX(1,M-Q).
  • B11D β€” B11D is REAL array, dimension (Q). When CBBCSD converges, B11D contains the cosines of THETA(1), ..., THETA(Q). If CBBCSD fails to converge, then B11D contains the diagonal of the partially reduced top-left block.
  • B11E β€” B11E is REAL array, dimension (Q-1). When CBBCSD converges, B11E contains zeros. If CBBCSD fails to converge, then B11E contains the superdiagonal of the partially reduced top-left block.
  • B12D β€” B12D is REAL array, dimension (Q). When CBBCSD converges, B12D contains the negative sines of THETA(1), ..., THETA(Q). If CBBCSD fails to converge, then B12D contains the diagonal of the partially reduced top-right block.
  • B12E β€” B12E is REAL array, dimension (Q-1). When CBBCSD converges, B12E contains zeros. If CBBCSD fails to converge, then B12E contains the subdiagonal of the partially reduced top-right block.
  • B21D β€” B21D is REAL array, dimension (Q). When CBBCSD converges, B21D contains the negative sines of THETA(1), ..., THETA(Q). If CBBCSD fails to converge, then B21D contains the diagonal of the partially reduced bottom-left block.
  • B21E β€” B21E is REAL array, dimension (Q-1). When CBBCSD converges, B21E contains zeros. If CBBCSD fails to converge, then B21E contains the subdiagonal of the partially reduced bottom-left block.
  • B22D β€” B22D is REAL array, dimension (Q). When CBBCSD converges, B22D contains the negative sines of THETA(1), ..., THETA(Q). If CBBCSD fails to converge, then B22D contains the diagonal of the partially reduced bottom-right block.
  • B22E β€” B22E is REAL array, dimension (Q-1). When CBBCSD converges, B22E contains zeros. If CBBCSD fails to converge, then B22E contains the subdiagonal of the partially reduced bottom-right block.
  • RWORK β€” RWORK is REAL array, dimension (MAX(1,LRWORK)). On exit, if INFO = 0, RWORK(1) returns the optimal LRWORK.
  • LRWORK β€” LRWORK is INTEGER. The dimension of the array RWORK. LRWORK >= MAX(1,8*Q). If LRWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of the RWORK array, returns this value as the first entry of the work array, and no error message related to LRWORK is issued by XERBLA.
  • INFO β€” INFO is INTEGER. = 0: successful exit. < 0: if INFO = -i, the i-th argument had an illegal value. > 0: if CBBCSD did not converge, INFO specifies the number of nonzero entries in PHI, and B11D, B11E, etc., contain the partially reduced matrix.

πŸŽ€ Internal Parameters πŸŽ€

  • TOLMUL β€” REAL, default = MAX(10,MIN(100,EPS**(-1/8))). TOLMUL controls the convergence criterion of the QR loop. Angles THETA(i), PHI(i) are rounded to 0 or PI/2 when they are within TOLMUL*EPS of either bound.

🌈 References 🌈

  • [1] Brian D. Sutton. Computing the complete CS decomposition. Numer. Algorithms, 50(1):33-65, 2009.

πŸ‘‘ Author πŸ‘‘

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.

Definition at line 328 of file cbbcsd.f.

πŸ’« Author πŸ’«

Generated automatically by Doxygen for LAPACK from the source code.


okay that's the whole page, bestie. the footer energy is LAPACK, Version 3.12.0, and the source path is /home/abui...RC/cbbcsd.f(3). no date was listed in that footer, so I'm not gonna invent one β€” slay responsibly. πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from