complex16_blas_level2(3)

πŸ“¦
version 3.11.0 Β· 2 versions
, in debian bookworm

NAME

complex16_blas_level2(3) β€” complex16 πŸ’…

SYNOPSIS ✨

okay so bestie, this page is the whole squad of complex16 LEVEL 2 BLAS routines. here's the full roster with exact signatures, no cap:

Functions

       subroutine zgbmv (TRANS, M, N, KL, KU, ALPHA, A, LDA, X, INCX, BETA, Y,
           INCY)
           ZGBMV
       subroutine zgemv (TRANS, M, N, ALPHA, A, LDA, X, INCX, BETA, Y, INCY)
           ZGEMV
       subroutine zgerc (M, N, ALPHA, X, INCX, Y, INCY, A, LDA)
           ZGERC
       subroutine zgeru (M, N, ALPHA, X, INCX, Y, INCY, A, LDA)
           ZGERU
       subroutine zhbmv (UPLO, N, K, ALPHA, A, LDA, X, INCX, BETA, Y, INCY)
           ZHBMV
       subroutine zhemv (UPLO, N, ALPHA, A, LDA, X, INCX, BETA, Y, INCY)
           ZHEMV
       subroutine zher (UPLO, N, ALPHA, X, INCX, A, LDA)
           ZHER
       subroutine zher2 (UPLO, N, ALPHA, X, INCX, Y, INCY, A, LDA)
           ZHER2
       subroutine zhpmv (UPLO, N, ALPHA, AP, X, INCX, BETA, Y, INCY)
           ZHPMV
       subroutine zhpr (UPLO, N, ALPHA, X, INCX, AP)
           ZHPR
       subroutine zhpr2 (UPLO, N, ALPHA, X, INCX, Y, INCY, AP)
           ZHPR2
       subroutine ztbmv (UPLO, TRANS, DIAG, N, K, A, LDA, X, INCX)
           ZTBMV
       subroutine ztbsv (UPLO, TRANS, DIAG, N, K, A, LDA, X, INCX)
           ZTBSV
       subroutine ztpmv (UPLO, TRANS, DIAG, N, AP, X, INCX)
           ZTPMV
       subroutine ztpsv (UPLO, TRANS, DIAG, N, AP, X, INCX)
           ZTPSV
       subroutine ztrmv (UPLO, TRANS, DIAG, N, A, LDA, X, INCX)
           ZTRMV
       subroutine ztrsv (UPLO, TRANS, DIAG, N, A, LDA, X, INCX)
           ZTRSV

Detailed Description 🌈

okay so this is literally the group of complex16 LEVEL 2 BLAS routines. that's the vibe. periodt. πŸ’–

Function Documentation πŸ’…

subroutine zgbmv (character TRANS, integer M, integer N, integer KL, integer KU, complex*16 ALPHA, complex*16, dimension(lda,*) A, integer LDA, complex*16, dimension(*) X, integer INCX, complex*16 BETA, complex*16, dimension(*) Y, integer INCY)

ZGBMV πŸ’–

Purpose

okay so ZGBMV does one of these matrix-vector operations:

   y := alpha*A*x + beta*y,   or   y := alpha*A**T*x + beta*y,   or
   y := alpha*A**H*x + beta*y,

where alpha and beta are scalars, x and y are vectors, and A is an m by n band matrix, with kl sub-diagonals and ku super-diagonals. no cap.

Parameters

  • TRANS β€” TRANS is CHARACTER*1. On entry, TRANS specifies the operation to be performed as follows:
    • TRANS = 'N' or 'n' β€” y := alpha*A*x + beta*y.
    • TRANS = 'T' or 't' β€” y := alpha*A**T*x + beta*y.
    • TRANS = 'C' or 'c' β€” y := alpha*A**H*x + beta*y.
  • M β€” M is INTEGER. On entry, M specifies the number of rows of the matrix A. M must be at least zero.
  • N β€” N is INTEGER. On entry, N specifies the number of columns of the matrix A. N must be at least zero.
  • KL β€” KL is INTEGER. On entry, KL specifies the number of sub-diagonals of the matrix A. KL must satisfy 0 .le. KL.
  • KU β€” KU is INTEGER. On entry, KU specifies the number of super-diagonals of the matrix A. KU must satisfy 0 .le. KU.
  • ALPHA β€” ALPHA is COMPLEX*16. On entry, ALPHA specifies the scalar alpha.
  • A β€” A is COMPLEX*16 array, dimension ( LDA, N ). Before entry, the leading ( kl + ku + 1 ) by n part of the array A must contain the matrix of coefficients, supplied column by column, with the leading diagonal of the matrix in row ( ku + 1 ) of the array, the first super-diagonal starting at position 2 in row ku, the first sub-diagonal starting at position 1 in row ( ku + 2 ), and so on. Elements in the array A that do not correspond to elements in the band matrix (such as the top left ku by ku triangle) are not referenced. The following program segment will transfer a band matrix from conventional full matrix storage to band storage:
                            DO 20, J = 1, N
                               K = KU + 1 - J
                               DO 10, I = MAX( 1, J - KU ), MIN( M, J + KL )
                                  A( K + I, J ) = matrix( I, J )
                         10    CONTINUE
                         20 CONTINUE
  • LDA β€” LDA is INTEGER. On entry, LDA specifies the first dimension of A as declared in the calling (sub) program. LDA must be at least ( kl + ku + 1 ).
  • X β€” X is COMPLEX*16 array, dimension at least ( 1 + ( n - 1 )*abs( INCX ) ) when TRANS = 'N' or 'n' and at least ( 1 + ( m - 1 )*abs( INCX ) ) otherwise. Before entry, the incremented array X must contain the vector x.
  • INCX β€” INCX is INTEGER. On entry, INCX specifies the increment for the elements of X. INCX must not be zero.
  • BETA β€” BETA is COMPLEX*16. On entry, BETA specifies the scalar beta. When BETA is supplied as zero then Y need not be set on input.
  • Y β€” Y is COMPLEX*16 array, dimension at least ( 1 + ( m - 1 )*abs( INCY ) ) when TRANS = 'N' or 'n' and at least ( 1 + ( n - 1 )*abs( INCY ) ) otherwise. Before entry, the incremented array Y must contain the vector y. On exit, Y is overwritten by the updated vector y.
  • INCY β€” INCY is INTEGER. On entry, INCY specifies the increment for the elements of Y. INCY must not be zero.

Author

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

Further Details

Level 2 Blas routine. The vector and matrix arguments are not referenced when N = 0, or M = 0.

-- Written on 22-October-1986.
   Jack Dongarra, Argonne National Lab.
   Jeremy Du Croz, Nag Central Office.
   Sven Hammarling, Nag Central Office.
   Richard Hanson, Sandia National Labs.

subroutine zgemv (character TRANS, integer M, integer N, complex*16 ALPHA, complex*16, dimension(lda,*) A, integer LDA, complex*16, dimension(*) X, integer INCX, complex*16 BETA, complex*16, dimension(*) Y, integer INCY)

ZGEMV πŸ’–

Purpose

okay so ZGEMV does one of these matrix-vector operations:

   y := alpha*A*x + beta*y,   or   y := alpha*A**T*x + beta*y,   or
   y := alpha*A**H*x + beta*y,

where alpha and beta are scalars, x and y are vectors, and A is an m by n matrix.

Parameters

  • TRANS β€” TRANS is CHARACTER*1. On entry, TRANS specifies the operation to be performed as follows:
    • TRANS = 'N' or 'n' β€” y := alpha*A*x + beta*y.
    • TRANS = 'T' or 't' β€” y := alpha*A**T*x + beta*y.
    • TRANS = 'C' or 'c' β€” y := alpha*A**H*x + beta*y.
  • M β€” M is INTEGER. On entry, M specifies the number of rows of the matrix A. M must be at least zero.
  • N β€” N is INTEGER. On entry, N specifies the number of columns of the matrix A. N must be at least zero.
  • ALPHA β€” ALPHA is COMPLEX*16. On entry, ALPHA specifies the scalar alpha.
  • A β€” A is COMPLEX*16 array, dimension ( LDA, N ). Before entry, the leading m by n part of the array A must contain the matrix of coefficients.
  • LDA β€” LDA is INTEGER. On entry, LDA specifies the first dimension of A as declared in the calling (sub) program. LDA must be at least max( 1, m ).
  • X β€” X is COMPLEX*16 array, dimension at least ( 1 + ( n - 1 )*abs( INCX ) ) when TRANS = 'N' or 'n' and at least ( 1 + ( m - 1 )*abs( INCX ) ) otherwise. Before entry, the incremented array X must contain the vector x.
  • INCX β€” INCX is INTEGER. On entry, INCX specifies the increment for the elements of X. INCX must not be zero.
  • BETA β€” BETA is COMPLEX*16. On entry, BETA specifies the scalar beta. When BETA is supplied as zero then Y need not be set on input.
  • Y β€” Y is COMPLEX*16 array, dimension at least ( 1 + ( m - 1 )*abs( INCY ) ) when TRANS = 'N' or 'n' and at least ( 1 + ( n - 1 )*abs( INCY ) ) otherwise. Before entry with BETA non-zero, the incremented array Y must contain the vector y. On exit, Y is overwritten by the updated vector y.
  • INCY β€” INCY is INTEGER. On entry, INCY specifies the increment for the elements of Y. INCY must not be zero.

Author

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

Further Details

Level 2 Blas routine. The vector and matrix arguments are not referenced when N = 0, or M = 0.

-- Written on 22-October-1986.
   Jack Dongarra, Argonne National Lab.
   Jeremy Du Croz, Nag Central Office.
   Sven Hammarling, Nag Central Office.
   Richard Hanson, Sandia National Labs.

subroutine zgerc (integer M, integer N, complex*16 ALPHA, complex*16, dimension(*) X, integer INCX, complex*16, dimension(*) Y, integer INCY, complex*16, dimension(lda,*) A, integer LDA)

ZGERC πŸ’–

Purpose

okay so ZGERC performs the rank 1 operation:

   A := alpha*x*y**H + A,

where alpha is a scalar, x is an m element vector, y is an n element vector and A is an m by n matrix.

Parameters

  • M β€” M is INTEGER. On entry, M specifies the number of rows of the matrix A. M must be at least zero.
  • N β€” N is INTEGER. On entry, N specifies the number of columns of the matrix A. N must be at least zero.
  • ALPHA β€” ALPHA is COMPLEX*16. On entry, ALPHA specifies the scalar alpha.
  • X β€”

X β€” X is a COMPLEX*16 array, dimension at least ( 1 + ( m - 1 )*abs( INCX ) ). Before entry, the incremented array X must contain the m element vector x. πŸ¦‹

INCX β€” INCX is INTEGER. On entry, INCX specifies the increment for the elements of X. INCX must not be zero. Zero is not the vibe, bestie. 😭

Y β€” Y is a COMPLEX*16 array, dimension at least ( 1 + ( n - 1 )*abs( INCY ) ). Before entry, the incremented array Y must contain the n element vector y. ✨

INCY β€” INCY is INTEGER. On entry, INCY specifies the increment for the elements of Y. INCY must not be zero. Same rule, no exceptions. πŸ’…

A β€” A is a COMPLEX*16 array, dimension ( LDA, N ). Before entry, the leading m by n part of the array A must contain the matrix of coefficients. On exit, A is overwritten by the updated matrix. She gets a glow-up whether you asked for it or not. πŸ”₯

LDA β€” LDA is INTEGER. On entry, LDA specifies the first dimension of A as declared in the calling (sub) program. LDA must be at least max( 1, m ). πŸ’–

Author πŸŽ€

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

Further Details: πŸ‘‘

Level 2 Blas routine.

-- Written on 22-October-1986.
   Jack Dongarra, Argonne National Lab.
   Jeremy Du Croz, Nag Central Office.
   Sven Hammarling, Nag Central Office.
   Richard Hanson, Sandia National Labs.

subroutine zgeru (integer M, integer N, complex*16 ALPHA, complex*16, dimension() X, integer INCX, complex16, dimension() Y, integer INCY, complex16, dimension(lda,*) A, integer LDA) 🧚

ZGERU β€” say hi to the icon. πŸ‘‘

Purpose: ZGERU performs the rank 1 operation

A := alpha*x*y**T + A,

where alpha is a scalar, x is an m element vector, y is an n element vector and A is an m by n matrix. Literally just vibes being added to your matrix. ⭐

Parameters πŸ’œ

M β€” M is INTEGER. On entry, M specifies the number of rows of the matrix A. M must be at least zero. πŸ™ˆ

N β€” N is INTEGER. On entry, N specifies the number of columns of the matrix A. N must be at least zero.

ALPHA β€” ALPHA is COMPLEX*16. On entry, ALPHA specifies the scalar alpha. 🌸

X β€” X is COMPLEX*16 array, dimension at least ( 1 + ( m - 1 )*abs( INCX ) ). Before entry, the incremented array X must contain the m element vector x. πŸ’«

INCX β€” INCX is INTEGER. On entry, INCX specifies the increment for the elements of X. INCX must not be zero.

Y β€” Y is COMPLEX*16 array, dimension at least ( 1 + ( n - 1 )*abs( INCY ) ). Before entry, the incremented array Y must contain the n element vector y. πŸ¦‹

INCY β€” INCY is INTEGER. On entry, INCY specifies the increment for the elements of Y. INCY must not be zero.

A β€” A is COMPLEX*16 array, dimension ( LDA, N ). Before entry, the leading m by n part of the array A must contain the matrix of coefficients. On exit, A is overwritten by the updated matrix. No take-backs. πŸ’…

LDA β€” LDA is INTEGER. On entry, LDA specifies the first dimension of A as declared in the calling (sub) program. LDA must be at least max( 1, m ). ✨

Author πŸŽ€

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

Further Details: πŸ‘‘

Level 2 Blas routine.

-- Written on 22-October-1986.
   Jack Dongarra, Argonne National Lab.
   Jeremy Du Croz, Nag Central Office.
   Sven Hammarling, Nag Central Office.
   Richard Hanson, Sandia National Labs.

subroutine zhbmv (character UPLO, integer N, integer K, complex*16 ALPHA, complex*16, dimension(lda,) A, integer LDA, complex16, dimension() X, integer INCX, complex16 BETA, complex*16, dimension(*) Y, integer INCY) 🌈

ZHBMV β€” hermitian band matrix hours, we're so back. 🫢

Purpose: ZHBMV performs the matrix-vector operation

y := alpha*A*x + beta*y,

where alpha and beta are scalars, x and y are n element vectors and A is an n by n hermitian band matrix, with k super-diagonals. πŸŽ€

Parameters πŸ’œ

UPLO β€” UPLO is CHARACTER*1. On entry, UPLO specifies whether the upper or lower triangular part of the band matrix A is being supplied as follows:

   UPLO = 'U' or 'u'   The upper triangular part of A is
                       being supplied.

   UPLO = 'L' or 'l'   The lower triangular part of A is
                       being supplied.

N β€” N is INTEGER. On entry, N specifies the order of the matrix A. N must be at least zero.

K β€” K is INTEGER. On entry, K specifies the number of super-diagonals of the matrix A. K must satisfy 0 .le. K.

ALPHA β€” ALPHA is COMPLEX*16. On entry, ALPHA specifies the scalar alpha. 🌸

A β€” A is COMPLEX*16 array, dimension ( LDA, N ). Okay so this is the long one, stay with me bestie. 😭

Before entry with UPLO = 'U' or 'u', the leading ( k + 1 ) by n part of the array A must contain the upper triangular band part of the hermitian matrix, supplied column by column, with the leading diagonal of the matrix in row ( k + 1 ) of the array, the first super-diagonal starting at position 2 in row k, and so on. The top left k by k triangle of the array A is not referenced. πŸ™ˆ

The following program segment will transfer the upper triangular part of a hermitian band matrix from conventional full matrix storage to band storage:

      DO 20, J = 1, N
         M = K + 1 - J
         DO 10, I = MAX( 1, J - K ), J
            A( M + I, J ) = matrix( I, J )
   10    CONTINUE
   20 CONTINUE

Before entry with UPLO = 'L' or 'l', the leading ( k + 1 ) by n part of the array A must contain the lower triangular band part of the hermitian matrix, supplied column by column, with the leading diagonal of the matrix in row 1 of the array, the first sub-diagonal starting at position 1 in row 2, and so on. The bottom right k by k triangle of the array A is not referenced. πŸ’€

The following program segment will transfer the lower triangular part of a hermitian band matrix from conventional full matrix storage to band storage:

      DO 20, J = 1, N
         M = 1 - J
         DO 10, I = J, MIN( N, J + K )
            A( M + I, J ) = matrix( I, J )
   10    CONTINUE
   20 CONTINUE

Note that the imaginary parts of the diagonal elements need not be set and are assumed to be zero. 🫢

LDA β€” LDA is INTEGER. On entry, LDA specifies the first dimension of A as declared in the calling (sub) program. LDA must be at least ( k + 1 ). ✨

X β€” X is COMPLEX*16 array, dimension at least ( 1 + ( n - 1 )*abs( INCX ) ). Before entry, the incremented array X must contain the vector x. πŸ’«

INCX β€” INCX is INTEGER. On entry, INCX specifies the increment for the elements of X. INCX must not be zero.

BETA β€” BETA is COMPLEX*16. On entry, BETA specifies the scalar beta. 🌸

Y β€” Y is COMPLEX*16 array, dimension at least ( 1 + ( n - 1 )*abs( INCY ) ). Before entry, the incremented array Y must contain the vector y. On exit, Y is overwritten by the updated vector y. πŸ‘‘

INCY β€” INCY is INTEGER. On entry, INCY specifies the increment for the elements of Y. INCY must not be zero.

Author πŸŽ€

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

Further Details: πŸ‘‘

Level 2 Blas routine.

The vector and matrix arguments are not referenced when N = 0, or M = 0

-- Written on 22-October-1986.
   Jack Dongarra, Argonne National Lab.
   Jeremy Du Croz, Nag Central Office.
   Sven Hammarling, Nag Central Office.
   Richard Hanson, Sandia National Labs.

subroutine zhemv (character UPLO, integer N, complex*16 ALPHA, complex*16, dimension(lda,) A, integer LDA, complex16, dimension() X, integer INCX, complex16 BETA, complex*16, dimension(*) Y, integer INCY) πŸ¦‹

ZHEMV β€” hermitian matrix-vector multiply, the moment. πŸ’–

Purpose: ZHEMV performs the matrix-vector operation

y := alpha*A*x + beta*y,

where alpha and beta are scalars, x and y are n element vectors and A is an n by n hermitian matrix. ⭐

Parameters πŸ’œ

UPLO β€” UPLO is CHARACTER*1. On entry, UPLO specifies whether the upper or lower triangular part of the array A is to be referenced as follows:

   UPLO = 'U' or 'u'   Only the upper triangular part of A
                       is to be referenced.

   UPLO = 'L' or 'l'   Only the lower triangular part of A
                       is to be referenced.

N β€” N is INTEGER. On entry, N specifies the order of the matrix A. N must be at least zero.

ALPHA β€” ALPHA is COMPLEX*16. On entry, ALPHA specifies the scalar alpha. 🌸

A

  • A β€” a COMPLEX*16 array, dimension ( LDA, N ). Okay so listen: if you roll in with UPLO = 'U' or 'u', then the leading n by n upper triangular part of A has to already hold the upper triangular part of the hermitian matrix, and the strictly lower triangular part of A is not referenced, like it's not even invited to the function πŸ’…. But if you come in with UPLO = 'L' or 'l', then it's the leading n by n lower triangular part of A that must contain the lower triangular part of the hermitian matrix, and this time the strictly upper triangular part of A is the one that's not referenced. Also important, bestie: the imaginary parts of the diagonal elements don't even need to be set β€” they're just assumed to be zero. No cap. 🫢
  • LDA β€” LDA is INTEGER. On entry, LDA tells us the first dimension of A as declared in the calling (sub) program. And it's gotta be at least max( 1, n ). Periodt.
  • X β€” X is a COMPLEX*16 array, dimension at least ( 1 + ( n - 1 )*abs( INCX ) ). Before entry, the incremented array X must contain the n element vector x. ✨
  • INCX β€” INCX is INTEGER. On entry, INCX is the increment for the elements of X. And INCX must not be zero. Like, do not. 🚫
  • BETA β€” BETA is COMPLEX*16. On entry, BETA is the scalar beta. And here's the lil shortcut: when BETA is supplied as zero, then Y doesn't need to be set on input. Iconic behaviour honestly. πŸ’–
  • Y β€” Y is a COMPLEX*16 array, dimension at least ( 1 + ( n - 1 )*abs( INCY ) ). Before entry, the incremented array Y must contain the n element vector y. And on exit? Y gets overwritten by the updated vector y. She's changed, she's grown. πŸ¦‹
  • INCY β€” INCY is INTEGER. On entry, INCY is the increment for the elements of Y. And INCY must not be zero either. 🧚

Author πŸ’œ

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

Further Details: 🌸

Level 2 Blas routine. The vector and matrix arguments are not referenced when N = 0, or M = 0
-- Written on 22-October-1986.
   Jack Dongarra, Argonne National Lab.
   Jeremy Du Croz, Nag Central Office.
   Sven Hammarling, Nag Central Office.
   Richard Hanson, Sandia National Labs.

subroutine zher πŸŽ€

subroutine zher (character UPLO, integer N, double precision ALPHA,
    complex*16, dimension(*) X, integer INCX, complex*16, dimension(lda,*)
    A, integer LDA)

ZHER

Purpose: ✨

ZHER performs the hermitian rank 1 operation

A := alpha*x*x**H + A,

where alpha is a real scalar, x is an n element vector and A is an n by n hermitian matrix. Rank 1, one single update, and she ate. πŸ’…

Parameters

  • UPLO β€” UPLO is CHARACTER*1. On entry, UPLO says whether the upper or lower triangular part of the array A is to be referenced, like this:
UPLO = 'U' or 'u'   Only the upper triangular part of A
                    is to be referenced.

UPLO = 'L' or 'l'   Only the lower triangular part of A
                    is to be referenced.
  • N β€” N is INTEGER. On entry, N specifies the order of the matrix A. And N must be at least zero.
  • ALPHA β€” ALPHA is DOUBLE PRECISION. On entry, ALPHA specifies the scalar alpha. (Real scalar energy for a hermitian glow-up πŸ’–)
  • X β€” X is a COMPLEX*16 array, dimension at least ( 1 + ( n - 1 )*abs( INCX ) ). Before entry, the incremented array X must contain the n element vector x. 🌈
  • INCX β€” INCX is INTEGER. On entry, INCX is the increment for the elements of X. INCX must not be zero. πŸ™ˆ
  • A β€” A is a COMPLEX*16 array, dimension ( LDA, N ). Before entry with UPLO = 'U' or 'u', the leading n by n upper triangular part of the array A must contain the upper triangular part of the hermitian matrix, and the strictly lower triangular part of A is not referenced. On exit, the upper triangular part of the array A is overwritten by the upper triangular part of the updated matrix. πŸ’«

Before entry with UPLO = 'L' or 'l', the leading n by n lower triangular part of the array A must contain the lower triangular part of the hermitian matrix, and the strictly upper triangular part of A is not referenced. On exit, the lower triangular part of the array A is overwritten by the lower triangular part of the updated matrix.

Note that the imaginary parts of the diagonal elements need not be set, they are assumed to be zero, and on exit they are set to zero. ✨

  • LDA β€” LDA is INTEGER. On entry, LDA specifies the first dimension of A as declared in the calling (sub) program. LDA must be at least max( 1, n ). No negotiating on this one bestie.

Author πŸ’œ

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

Further Details: 🌸

Level 2 Blas routine.
-- Written on 22-October-1986.
   Jack Dongarra, Argonne National Lab.
   Jeremy Du Croz, Nag Central Office.
   Sven Hammarling, Nag Central Office.
   Richard Hanson, Sandia National Labs.

subroutine zher2 πŸ¦‹

subroutine zher2 (character UPLO, integer N, complex*16 ALPHA, complex*16,
    dimension(*) X, integer INCX, complex*16, dimension(*) Y, integer INCY,
    complex*16, dimension(lda,*) A, integer LDA)

ZHER2

Purpose: ✨

ZHER2 performs the hermitian rank 2 operation

A := alpha*x*y**H + conjg( alpha )*y*x**H + A,

where alpha is a scalar, x and y are n element vectors and A is an n by n hermitian matrix. Two vectors, one glow-up, main character energy. πŸ‘‘

Parameters

  • UPLO β€” UPLO is CHARACTER*1. On entry, UPLO says whether the upper or lower triangular part of the array A is to be referenced, as follows:
UPLO = 'U' or 'u'   Only the upper triangular part of A
                    is to be referenced.

UPLO = 'L' or 'l'   Only the lower triangular part of A
                    is to be referenced.
  • N β€” N is INTEGER. On entry, N specifies the order of the matrix A. N must be at least zero.
  • ALPHA β€” ALPHA is COMPLEX*16. On entry, ALPHA specifies the scalar alpha. (Yes bestie, complex this time, we're not playing around πŸ’…)
  • X β€” X is a COMPLEX*16 array, dimension at least ( 1 + ( n - 1 )*abs( INCX ) ). Before entry, the incremented array X must contain the n element vector x. πŸ¦‹
  • INCX β€” INCX is INTEGER. On entry, INCX is the increment for the elements of X. INCX must not be zero. 🚫
  • Y β€” Y is a COMPLEX*16 array, dimension at least ( 1 + ( n - 1 )*abs( INCY ) ). Before entry, the incremented array Y must contain the n element vector y. 🌸
  • INCY β€” INCY is INTEGER. On entry, INCY is the increment for the elements of Y. INCY must not be zero. 🧚
  • A β€” A is a COMPLEX*16 array, dimension ( LDA, N ). Before entry with UPLO = 'U' or 'u', the leading n by n upper triangular part of the array A must contain the upper triangular part of the hermitian matrix, and the strictly lower triangular part of A is not referenced. On exit, the upper triangular part of the array A is overwritten by the upper triangular part of the updated matrix. ✨

Before entry with UPLO = 'L' or 'l', the leading n by n lower triangular part of the array A must contain the lower triangular part of the hermitian matrix, and the strictly upper triangular part of A is not referenced. On exit, the lower triangular part of the array A is overwritten by the lower triangular part of the updated matrix.

Note that the imaginary parts of the diagonal elements need not be set, they are assumed to be zero, and on exit they are set to zero. πŸ’–

  • LDA β€” LDA is INTEGER. On entry, LDA specifies the first dimension of A as declared in the calling (sub) program. LDA must be at least max( 1, n ).

Author πŸ’œ

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

Further Details: 🌸

Level 2 Blas routine.
-- Written on 22-October-1986.
   Jack Dongarra, Argonne National Lab.
   Jeremy Du Croz, Nag Central Office.
   Sven Hammarling, Nag Central Office.
   Richard Hanson, Sandia National Labs.

subroutine zhpmv πŸŽ€

subroutine zhpmv (character UPLO, integer N, complex*16 ALPHA, complex*16,
    dimension(*) AP, complex*16, dimension(*) X, integer INCX, complex*16
    BETA, complex*16, dimension(*) Y, integer INCY)

ZHPMV

Purpose: ✨

ZHPMV performs the matrix-vector operation

y := alpha*A*x + beta*y,

where alpha and beta are scalars, x and y are n element vectors and A is an n by n hermitian matrix, supplied in packed form. Yes, packed β€” she's compact, she's efficient, she's that girl. πŸ’…

Parameters

  • UPLO β€” UPLO is CHARACTER*1. On entry, UPLO specifies whether the upper or lower triangular part of the matrix A is supplied in the packed array AP, like this:
UPLO = 'U' or 'u'   The upper triangular part of A is
                    supplied in AP.

UPLO = 'L' or 'l'   The lower triangular part of A is
                    supplied in AP.
  • N β€” N is INTEGER. On entry, N specifies the order of the matrix A. N must be at least zero.
  • ALPHA β€” ALPHA is COMPLEX*16. On entry, ALPHA specifies the scalar alpha. 🌈
  • AP
  • AP β€” is a COMPLEX*16 array, dimension at least ( ( n*( n + 1 ) )/2 ).

okay so picture this: with UPLO = 'U' or 'u', AP is holding the upper triangular part of the hermitian matrix, packed sequentially, column by column, so that AP( 1 ) contains a( 1, 1 ), AP( 2 ) and AP( 3 ) contain a( 1, 2 ) and a( 2, 2 ) respectively, and so on. literally just stacking the columns one after another, no zeros, no filler, all vibes πŸ’…

and with UPLO = 'L' or 'l', AP holds the lower triangular part of the hermitian matrix, packed sequentially, column by column, so that AP( 1 ) contains a( 1, 1 ), AP( 2 ) and AP( 3 ) contain a( 2, 1 ) and a( 3, 1 ) respectively, and so on. same energy, other corner ✨

heads up bestie: the imaginary parts of the diagonal elements don't need to be set at all β€” they're assumed to be zero. don't waste your time writing them πŸ™ˆ
  • X β€” is a COMPLEX*16 array, dimension at least ( 1 + ( n - 1 )*abs( INCX ) ).

before entry, the incremented array X must contain the n element vector x. that's the whole assignment. put x in there. 🫢

  • INCX β€” is INTEGER.

on entry, INCX specifies the increment for the elements of X. and bestie β€” INCX must not be zero. like, at all. zero is not it. πŸ’€

  • BETA β€” is COMPLEX*16.

on entry, BETA specifies the scalar beta. and here's the cute part: when BETA is supplied as zero, Y need not be set on input β€” you can just leave it sitting there, unbothered, because it's not getting read πŸ‘‘

  • Y β€” is a COMPLEX*16 array, dimension at least ( 1 + ( n - 1 )*abs( INCY ) ).

before entry, the incremented array Y must contain the n element vector y. and on exit? Y is overwritten by the updated vector y. it goes in as y, it comes out as the new y. glow up fr fr ✨

  • INCY β€” is INTEGER.

on entry, INCY specifies the increment for the elements of Y. and same rule as its sibling: INCY must not be zero. 🚫

πŸ‘‘ Author

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

πŸ” Further Details:

Level 2 Blas routine.
The vector and matrix arguments are not referenced when N = 0, or M = 0

-- Written on 22-October-1986.
   Jack Dongarra, Argonne National Lab.
   Jeremy Du Croz, Nag Central Office.
   Sven Hammarling, Nag Central Office.
   Richard Hanson, Sandia National Labs.
not them writing this on 22-October-1986 and it still running your entire numerical stack. legends only. 🌈

πŸŽ€ ZHPR πŸŽ€

subroutine zhpr (character UPLO, integer N, double precision ALPHA, complex*16, dimension(*) X, integer INCX, complex*16, dimension(*) AP)

Purpose:

ZHPR    performs the hermitian rank 1 operation

   A := alpha*x*x**H + A,

where alpha is a real scalar, x is an n element vector and A is an
n by n hermitian matrix, supplied in packed form.

ok so ZHPR is out here doing a hermitian rank 1 operation β€” alpha is a real scalar this time, x is an n element vector, and A is an n by n hermitian matrix, supplied in packed form. one vector, one rank, one update. simple, iconic, done. πŸ’–

Parameters

  • UPLO β€” is CHARACTER*1.

on entry, UPLO specifies whether the upper or lower triangular part of the matrix A is supplied in the packed array AP, like so:

  • UPLO = 'U' or 'u' β€” the upper triangular part of A is supplied in AP.
  • UPLO = 'L' or 'l' β€” the lower triangular part of A is supplied in AP.
  • N β€” is INTEGER.

on entry, N specifies the order of the matrix A. N must be at least zero.

  • ALPHA β€” is DOUBLE PRECISION.

on entry, ALPHA specifies the scalar alpha. (real one, remember β€” not complex, this routine said so 🫢)

  • X β€” is a COMPLEX*16 array, dimension at least ( 1 + ( n - 1 )*abs( INCX ) ).

before entry, the incremented array X must contain the n element vector x.

  • INCX β€” is INTEGER.

on entry, INCX specifies the increment for the elements of X. INCX must not be zero.

  • AP β€” is a COMPLEX*16 array, dimension at least ( ( n*( n + 1 ) )/2 ).

before entry with UPLO = 'U' or 'u', the array AP must contain the upper triangular part of the hermitian matrix packed sequentially, column by column, so that AP( 1 ) contains a( 1, 1 ), AP( 2 ) and AP( 3 ) contain a( 1, 2 ) and a( 2, 2 ) respectively, and so on. on exit, the array AP is overwritten by the upper triangular part of the updated matrix. πŸ’«

before entry with UPLO = 'L' or 'l', the array AP must contain the lower triangular part of the hermitian matrix packed sequentially, column by column, so that AP( 1 ) contains a( 1, 1 ), AP( 2 ) and AP( 3 ) contain a( 2, 1 ) and a( 3, 1 ) respectively, and so on. on exit, the array AP is overwritten by the lower triangular part of the updated matrix.

and the note: the imaginary parts of the diagonal elements need not be set, they are assumed to be zero, and on exit they are set to zero. so this routine actually cleans them up for you. considerate queen behavior πŸ‘‘

πŸ‘‘ Author

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

πŸ” Further Details:

Level 2 Blas routine.

-- Written on 22-October-1986.
   Jack Dongarra, Argonne National Lab.
   Jeremy Du Croz, Nag Central Office.
   Sven Hammarling, Nag Central Office.
   Richard Hanson, Sandia National Labs.

πŸ¦‹ ZHPR2 πŸ¦‹

subroutine zhpr2 (character UPLO, integer N, complex*16 ALPHA, complex*16, dimension(*) X, integer INCX, complex*16, dimension(*) Y, integer INCY, complex*16, dimension(*) AP)

Purpose:

ZHPR2  performs the hermitian rank 2 operation

   A := alpha*x*y**H + conjg( alpha )*y*x**H + A,

where alpha is a scalar, x and y are n element vectors and A is an
n by n hermitian matrix, supplied in packed form.

so ZHPR2 is the rank 2 sibling β€” two vectors, and look at that beautiful symmetry: alpha*x*y**H plus conjg( alpha )*y*x**H plus A. the conjugate is doing the heavy lifting so the result stays hermitian. it's giving math with taste πŸ’…

Parameters

  • UPLO β€” is CHARACTER*1.

on entry, UPLO specifies whether the upper or lower triangular part of the matrix A is supplied in the packed array AP, as follows:

  • UPLO = 'U' or 'u' β€” the upper triangular part of A is supplied in AP.
  • UPLO = 'L' or 'l' β€” the lower triangular part of A is supplied in AP.
  • N β€” is INTEGER.

on entry, N specifies the order of the matrix A. N must be at least zero.

  • ALPHA β€” is COMPLEX*16.

on entry, ALPHA specifies the scalar alpha. (yep β€” complex this time, not real. different routine, different rules ✨)

  • X β€” is a COMPLEX*16 array, dimension at least ( 1 + ( n - 1 )*abs( INCX ) ).

before entry, the incremented array X must contain the n element vector x.

  • INCX β€” is INTEGER.

on entry, INCX specifies the increment for the elements of X. INCX must not be zero.

  • Y β€” is a COMPLEX*16 array, dimension at least ( 1 + ( n - 1 )*abs( INCY ) ).

before entry, the incremented array Y must contain the n element vector y.

  • INCY β€” is INTEGER.

on entry, INCY specifies the increment for the elements of Y. INCY must not be zero.

  • AP β€” is a COMPLEX*16 array, dimension at least ( ( n*( n + 1 ) )/2 ).

before entry with UPLO = 'U' or 'u', the array AP must contain the upper triangular part of the hermitian matrix packed sequentially, column by column, so that AP( 1 ) contains a( 1, 1 ), AP( 2 ) and AP( 3 ) contain a( 1, 2 ) and a( 2, 2 ) respectively, and so on. on exit, the array AP is overwritten by the upper triangular part of the updated matrix. 🌸

before entry with UPLO = 'L' or 'l', the array AP must contain the lower triangular part of the hermitian matrix packed sequentially, column by column, so that AP( 1 ) contains a( 1, 1 ), AP( 2 ) and AP( 3 ) contain a( 2, 1 ) and a( 3, 1 ) respectively, and so on. on exit, the array AP is overwritten by the lower triangular part of the updated matrix.

again: the imaginary parts of the diagonal elements need not be set, they are assumed to be zero, and on exit they are set to zero. 🧚

πŸ‘‘ Author

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

πŸ” Further Details:

Level 2 Blas routine.

-- Written on 22-October-1986.
   Jack Dongarra, Argonne National Lab.
   Jeremy Du Croz, Nag Central Office.
   Sven Hammarling, Nag Central Office.
   Richard Hanson, Sandia National Labs.

🌟 ZTBMV 🌟

subroutine ztbmv (character UPLO, character TRANS, character DIAG, integer N, integer K, complex*16, dimension(lda,*) A, integer LDA, complex*16, dimension(*) X, integer INCX)

Purpose:

ZTBMV  performs one of the matrix-vector operations

   x := A*x,   or   x := A**T*x,   or   x := A**H*x,

where x is an n element vector and  A is an n by n unit, or non-unit,
upper or lower triangular band matrix, with ( k + 1 ) diagonals.

ZTBMV is the triangular band matrix one β€” you pick whether you want A*x, A**T*x, or A**H*x, and A is an n by n unit or non-unit, upper or lower triangular band matrix, with ( k + 1 ) diagonals. banded, so it's compact and fast and lowkey flexing πŸƒβ€β™€οΈπŸ’¨

Parameters

  • UPLO β€” is CHARACTER*1.

on entry, UPLO specifies whether the matrix is an upper or lower triangular matrix, as follows:

  • UPLO = 'U' or 'u' β€” A is an upper triangular matrix.
  • UPLO = 'L' or 'l' β€” A is a lower triangular matrix.
  • TRANS β€” is CHARACTER*1.

on entry, TRANS specifies the operation to be performed, as follows:

  • TRANS = 'N' or 'n' β€” x := A*x.
  • TRANS = 'T' or 't' β€” x := A**T*x.
  • TRANS = 'C' or 'c' β€” x := A**H*x.
  • DIAG β€” is CHARACTER*1.

on entry, DIAG specifies whether or not A is unit triangular, as follows:

  • DIAG = 'U' or 'u' β€” A is assumed to be unit triangular.
  • DIAG = 'N' or 'n' β€” A is not assumed to be unit triangular.
  • N

N 🌸

N is INTEGER β€” on entry, N tells us the order of the matrix A. Bestie, N has to be at least zero, no negativity allowed here. πŸ’…

K ✨

K is INTEGER β€” okay so this one's a lil shape-shifter depending on your UPLO:

  • On entry with UPLO = 'U' or 'u', K specifies the number of super-diagonals of the matrix A.
  • On entry with UPLO = 'L' or 'l', K specifies the number of sub-diagonals of the matrix A.

And K must satisfy 0 .le. K. Periodt. πŸ‘‘

A πŸ¦‹

A is COMPLEX*16 array, dimension ( LDA, N ).

Before entry with UPLO = 'U' or 'u', the leading ( k + 1 ) by n part of the array A must contain the upper triangular band part of the matrix of coefficients, supplied column by column, with the leading diagonal of the matrix in row ( k + 1 ) of the array, the first super-diagonal starting at position 2 in row k, and so on. The top left k by k triangle of the array A is not referenced β€” it's giving "not invited to the party" energy.

The following program segment will transfer an upper triangular band matrix from conventional full matrix storage to band storage:

      DO 20, J = 1, N
         M = K + 1 - J
         DO 10, I = MAX( 1, J - K ), J
            A( M + I, J ) = matrix( I, J )
   10    CONTINUE
   20 CONTINUE

Before entry with UPLO = 'L' or 'l', the leading ( k + 1 ) by n part of the array A must contain the lower triangular band part of the matrix of coefficients, supplied column by column, with the leading diagonal of the matrix in row 1 of the array, the first sub-diagonal starting at position 1 in row 2, and so on. The bottom right k by k triangle of the array A is not referenced either, same vibe, different corner.

The following program segment will transfer a lower triangular band matrix from conventional full matrix storage to band storage:

      DO 20, J = 1, N
         M = 1 - J
         DO 10, I = J, MIN( N, J + K )
            A( M + I, J ) = matrix( I, J )
   10    CONTINUE
   20 CONTINUE
Note that when DIAG = 'U' or 'u' the elements of the array A corresponding to the diagonal elements of the matrix are not referenced, but are assumed to be unity. Like, they're there but also not there. Iconic behavior honestly. πŸ’€

LDA πŸ’œ

LDA is INTEGER β€” on entry, LDA specifies the first dimension of A as declared in the calling (sub) program. LDA must be at least ( k + 1 ). No skimping, bestie.

X πŸŽ€

X is COMPLEX*16 array, dimension at least ( 1 + ( n - 1 )*abs( INCX ) ).

Before entry, the incremented array X must contain the n element vector x. On exit, X is overwritten with the transformed vector x. She said "new me, who dis". ✨

INCX 🌈

INCX is INTEGER β€” on entry, INCX specifies the increment for the elements of X. INCX must not be zero. Fr fr, zero is not the move.


Author πŸ‘‘

Univ. of Tennessee

Univ. of California Berkeley

Univ. of Colorado Denver

NAG Ltd.


Further Details: πŸ“œ

Level 2 Blas routine.
The vector and matrix arguments are not referenced when N = 0, or M = 0

-- Written on 22-October-1986.
   Jack Dongarra, Argonne National Lab.
   Jeremy Du Croz, Nag Central Office.
   Sven Hammarling, Nag Central Office.
   Richard Hanson, Sandia National Labs.

subroutine ztbsv (character UPLO, character TRANS, character DIAG, integer N, integer K, complex*16, dimension(lda,*) A, integer LDA, complex*16, dimension(*) X, integer INCX)

ZTBSV 🧚

Purpose: 🌟

ZTBSV solves one of the systems of equations

   A*x = b,   or   A**T*x = b,   or   A**H*x = b,

where b and x are n element vectors and A is an n by n unit, or non-unit, upper or lower triangular band matrix, with ( k + 1 ) diagonals.

No test for singularity or near-singularity is included in this routine. Such tests must be performed before calling this routine. So like… check your matrix yourself, bestie, this routine is not your therapist. 😭

Parameters πŸ“

UPLO

UPLO is CHARACTER*1 β€” on entry, UPLO specifies whether the matrix is an upper or lower triangular matrix as follows:

  • UPLO = 'U' or 'u' β€” A is an upper triangular matrix.
  • UPLO = 'L' or 'l' β€” A is a lower triangular matrix.

TRANS

TRANS is CHARACTER*1 β€” on entry, TRANS specifies the equations to be solved as follows:

  • TRANS = 'N' or 'n' β€” A*x = b.
  • TRANS = 'T' or 't' β€” A**T*x = b.
  • TRANS = 'C' or 'c' β€” A**H*x = b.

DIAG

DIAG is CHARACTER*1 β€” on entry, DIAG specifies whether or not A is unit triangular as follows:

  • DIAG = 'U' or 'u' β€” A is assumed to be unit triangular.
  • DIAG = 'N' or 'n' β€” A is not assumed to be unit triangular.

N

N is INTEGER β€” on entry, N specifies the order of the matrix A. N must be at least zero.

K

K is INTEGER β€” on entry with UPLO = 'U' or 'u', K specifies the number of super-diagonals of the matrix A. On entry with UPLO = 'L' or 'l', K specifies the number of sub-diagonals of the matrix A. K must satisfy 0 .le. K.

A

A is COMPLEX*16 array, dimension ( LDA, N )

Before entry with UPLO = 'U' or 'u', the leading ( k + 1 ) by n part of the array A must contain the upper triangular band part of the matrix of coefficients, supplied column by column, with the leading diagonal of the matrix in row ( k + 1 ) of the array, the first super-diagonal starting at position 2 in row k, and so on. The top left k by k triangle of the array A is not referenced.

The following program segment will transfer an upper triangular band matrix from conventional full matrix storage to band storage:

      DO 20, J = 1, N
         M = K + 1 - J
         DO 10, I = MAX( 1, J - K ), J
            A( M + I, J ) = matrix( I, J )
   10    CONTINUE
   20 CONTINUE

Before entry with UPLO = 'L' or 'l', the leading ( k + 1 ) by n part of the array A must contain the lower triangular band part of the matrix of coefficients, supplied column by column, with the leading diagonal of the matrix in row 1 of the array, the first sub-diagonal starting at position 1 in row 2, and so on. The bottom right k by k triangle of the array A is not referenced.

The following program segment will transfer a lower triangular band matrix from conventional full matrix storage to band storage:

      DO 20, J = 1, N
         M = 1 - J
         DO 10, I = J, MIN( N, J + K )
            A( M + I, J ) = matrix( I, J )
   10    CONTINUE
   20 CONTINUE
Note that when DIAG = 'U' or 'u' the elements of the array A corresponding to the diagonal elements of the matrix are not referenced, but are assumed to be unity. 🫢

LDA

LDA is INTEGER β€” on entry, LDA specifies the first dimension of A as declared in the calling (sub) program. LDA must be at least ( k + 1 ).

X

X is COMPLEX*16 array, dimension at least ( 1 + ( n - 1 )*abs( INCX ) ).

Before entry, the incremented array X must contain the n element right-hand side vector b. On exit, X is overwritten with the solution vector x. Glow up complete. πŸ’–

INCX

INCX is INTEGER β€” on entry, INCX specifies the increment for the elements of X. INCX must not be zero.


Author πŸ‘‘

Univ. of Tennessee

Univ. of California Berkeley

Univ. of Colorado Denver

NAG Ltd.

Further Details: πŸ“œ

Level 2 Blas routine.

-- Written on 22-October-1986.
   Jack Dongarra, Argonne National Lab.
   Jeremy Du Croz, Nag Central Office.
   Sven Hammarling, Nag Central Office.
   Richard Hanson, Sandia National Labs.

subroutine ztpmv (character UPLO, character TRANS, character DIAG, integer N, complex*16, dimension(*) AP, complex*16, dimension(*) X, integer INCX)

ZTPMV ⭐

Purpose: 🌟

ZTPMV performs one of the matrix-vector operations

   x := A*x,   or   x := A**T*x,   or   x := A**H*x,

where x is an n element vector and A is an n by n unit, or non-unit, upper or lower triangular matrix, supplied in packed form. Packed form, bestie β€” no wasted space, she's efficient. πŸ’…

Parameters πŸ“

UPLO

UPLO is CHARACTER*1 β€” on entry, UPLO specifies whether the matrix is an upper or lower triangular matrix as follows:

  • UPLO = 'U' or 'u' β€” A is an upper triangular matrix.
  • UPLO = 'L' or 'l' β€” A is a lower triangular matrix.

TRANS

TRANS is CHARACTER*1 β€” on entry, TRANS specifies the operation to be performed as follows:

  • TRANS = 'N' or 'n' β€” x := A*x.
  • TRANS = 'T' or 't' β€” x := A**T*x.
  • TRANS = 'C' or 'c' β€” x := A**H*x.

DIAG

DIAG is CHARACTER*1 β€” on entry, DIAG specifies whether or not A is unit triangular as follows:

  • DIAG = 'U' or 'u' β€” A is assumed to be unit triangular.
  • DIAG = 'N' or 'n' β€” A is not assumed to be unit triangular.

N

N is INTEGER β€” on entry, N specifies the order of the matrix A. N must be at least zero.

AP

AP is next up…

  • AP β€” okay bestie, listen up πŸ‘‚ AP is a COMPLEX*16 array, and its dimension has to be at least ( ( n*( n + 1 ) )/2 ). Before you enter with UPLO = 'U' or 'u', the array AP must contain the upper triangular matrix packed sequentially, column by column, so that AP( 1 ) contains a( 1, 1 ), AP( 2 ) and AP( 3 ) contain a( 1, 2 ) and a( 2, 2 ) respectively, and so on. Before entry with UPLO = 'L' or 'l', the array AP must contain the lower triangular matrix packed sequentially, column by column, so that AP( 1 ) contains a( 1, 1 ), AP( 2 ) and AP( 3 ) contain a( 2, 1 ) and a( 3, 1 ) respectively, and so on. Note that when DIAG = 'U' or 'u', the diagonal elements of A are not referenced, but are assumed to be unity. πŸ’…
  • X β€” so X is a COMPLEX*16 array, dimension at least ( 1 + ( n - 1 )*abs( INCX ) ). Before entry, the incremented array X must contain the n element vector x. On exit, X is overwritten with the transformed vector x. ✨
  • INCX β€” and finally for this one, INCX is INTEGER. On entry, INCX specifies the increment for the elements of X. INCX must not be zero. 🚫

Author πŸ’–

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

Further Details πŸ”₯

Level 2 Blas routine. The vector and matrix arguments are not referenced when N = 0, or M = 0

-- Written on 22-October-1986. Jack Dongarra, Argonne National Lab. Jeremy Du Croz, Nag Central Office. Sven Hammarling, Nag Central Office. Richard Hanson, Sandia National Labs.

subroutine ztpsv (character UPLO, character TRANS, character DIAG, integer
    N, complex*16, dimension(*) AP, complex*16, dimension(*) X, integer
    INCX)

ZTPSV πŸ‘‘

Purpose

ZTPSV solves one of the systems of equations

A*x = b,   or   A**T*x = b,   or   A**H*x = b,

where b and x are n element vectors and A is an n by n unit, or non-unit, upper or lower triangular matrix, supplied in packed form.

No test for singularity or near-singularity is included in this routine. Such tests must be performed before calling this routine. periodt. 🫢

Parameters πŸ’…

  • UPLO β€” UPLO is CHARACTER*1. On entry, UPLO specifies whether the matrix is an upper or lower triangular matrix as follows:
    • UPLO = 'U' or 'u' A is an upper triangular matrix.
    • UPLO = 'L' or 'l' A is a lower triangular matrix.
  • TRANS β€” TRANS is CHARACTER*1. On entry, TRANS specifies the equations to be solved as follows:
    • TRANS = 'N' or 'n' A*x = b.
    • TRANS = 'T' or 't' A**T*x = b.
    • TRANS = 'C' or 'c' A**H*x = b.
  • DIAG β€” DIAG is CHARACTER*1. On entry, DIAG specifies whether or not A is unit triangular as follows:
    • DIAG = 'U' or 'u' A is assumed to be unit triangular.
    • DIAG = 'N' or 'n' A is not assumed to be unit triangular.
  • N β€” N is INTEGER. On entry, N specifies the order of the matrix A. N must be at least zero.
  • AP β€” AP is COMPLEX*16 array, dimension at least ( ( n*( n + 1 ) )/2 ). Before entry with UPLO = 'U' or 'u', the array AP must contain the upper triangular matrix packed sequentially, column by column, so that AP( 1 ) contains a( 1, 1 ), AP( 2 ) and AP( 3 ) contain a( 1, 2 ) and a( 2, 2 ) respectively, and so on. Before entry with UPLO = 'L' or 'l', the array AP must contain the lower triangular matrix packed sequentially, column by column, so that AP( 1 ) contains a( 1, 1 ), AP( 2 ) and AP( 3 ) contain a( 2, 1 ) and a( 3, 1 ) respectively, and so on. Note that when DIAG = 'U' or 'u', the diagonal elements of A are not referenced, but are assumed to be unity.
  • X β€” X is COMPLEX*16 array, dimension at least ( 1 + ( n - 1 )*abs( INCX ) ). Before entry, the incremented array X must contain the n element right-hand side vector b. On exit, X is overwritten with the solution vector x.
  • INCX β€” INCX is INTEGER. On entry, INCX specifies the increment for the elements of X. INCX must not be zero.

Author πŸ’–

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

Further Details 🌈

Level 2 Blas routine.

-- Written on 22-October-1986. Jack Dongarra, Argonne National Lab. Jeremy Du Croz, Nag Central Office. Sven Hammarling, Nag Central Office. Richard Hanson, Sandia National Labs.

subroutine ztrmv (character UPLO, character TRANS, character DIAG, integer
    N, complex*16, dimension(lda,*) A, integer LDA, complex*16, dimension(*)
    X, integer INCX)

ZTRMV πŸ¦‹

Purpose

ZTRMV performs one of the matrix-vector operations

x := A*x,   or   x := A**T*x,   or   x := A**H*x,

where x is an n element vector and A is an n by n unit, or non-unit, upper or lower triangular matrix.

Parameters πŸ’…

  • UPLO β€” UPLO is CHARACTER*1. On entry, UPLO specifies whether the matrix is an upper or lower triangular matrix as follows:
    • UPLO = 'U' or 'u' A is an upper triangular matrix.
    • UPLO = 'L' or 'l' A is a lower triangular matrix.
  • TRANS β€” TRANS is CHARACTER*1. On entry, TRANS specifies the operation to be performed as follows:
    • TRANS = 'N' or 'n' x := A*x.
    • TRANS = 'T' or 't' x := A**T*x.
    • TRANS = 'C' or 'c' x := A**H*x.
  • DIAG β€” DIAG is CHARACTER*1. On entry, DIAG specifies whether or not A is unit triangular as follows:
    • DIAG = 'U' or 'u' A is assumed to be unit triangular.
    • DIAG = 'N' or 'n' A is not assumed to be unit triangular.
  • N β€” N is INTEGER. On entry, N specifies the order of the matrix A. N must be at least zero.
  • A β€” A is COMPLEX*16 array, dimension ( LDA, N ). Before entry with UPLO = 'U' or 'u', the leading n by n upper triangular part of the array A must contain the upper triangular matrix and the strictly lower triangular part of A is not referenced. Before entry with UPLO = 'L' or 'l', the leading n by n lower triangular part of the array A must contain the lower triangular matrix and the strictly upper triangular part of A is not referenced. Note that when DIAG = 'U' or 'u', the diagonal elements of A are not referenced either, but are assumed to be unity.
  • LDA β€” LDA is INTEGER. On entry, LDA specifies the first dimension of A as declared in the calling (sub) program. LDA must be at least max( 1, n ).
  • X β€” X is COMPLEX*16 array, dimension at least ( 1 + ( n - 1 )*abs( INCX ) ). Before entry, the incremented array X must contain the n element vector x. On exit, X is overwritten with the transformed vector x.
  • INCX β€” INCX is INTEGER. On entry, INCX specifies the increment for the elements of X. INCX must not be zero.

Author πŸ’–

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

Further Details 🌈

Level 2 Blas routine. The vector and matrix arguments are not referenced when N = 0, or M = 0

-- Written on 22-October-1986. Jack Dongarra, Argonne National Lab. Jeremy Du Croz, Nag Central Office. Sven Hammarling, Nag Central Office. Richard Hanson, Sandia National Labs.

subroutine ztrsv (character UPLO, character TRANS, character DIAG, integer
    N, complex*16, dimension(lda,*) A, integer LDA, complex*16, dimension(*)
    X, integer INCX)

ZTRSV πŸŽ€

Purpose

ZTRSV solves one of the systems of equations

A*x = b,   or   A**T*x = b,   or   A**H*x = b,

where b and x are n element vectors and A is an n by n unit, or non-unit, upper or lower triangular matrix.

No test for singularity or near-singularity is included in this routine. Such tests must be performed before calling this routine. 🫢

Parameters πŸ’…

  • UPLO β€” UPLO is CHARACTER*1. On entry, UPLO specifies whether the matrix is an upper or lower triangular matrix as follows:
    • UPLO = 'U' or 'u' A is an upper triangular matrix.
    • UPLO = 'L' or 'l' A is a lower triangular matrix.
  • TRANS β€” TRANS is CHARACTER*1. On entry, TRANS specifies the equations to be solved as follows:
    • TRANS = 'N' or 'n' A*x = b.
    • TRANS = 'T' or 't' A**T*x = b.
    • TRANS = 'C' or 'c' A**H*x = b.
  • DIAG β€” DIAG is CHARACTER*1. On entry, DIAG specifies whether or not A is unit triangular as follows:
    • DIAG = 'U' or 'u' A is assumed to be unit triangular.
    • DIAG = 'N' or 'n' A is not assumed to be unit triangular.
  • N β€” N is INTEGER. On entry, N specifies the order of the matrix A. N must be at least zero.
  • A β€”

okay so we're back in the argument tea β˜• and this part is serving triangular realness, so bestie, lock in:

  • A β€” A is COMPLEX*16 array, dimension ( LDA, N ). Before entry with UPLO = 'U' or 'u', the leading n by n upper triangular part of the array A must contain the upper triangular matrix and the strictly lower triangular part of A is not referenced. Before entry with UPLO = 'L' or 'l', the leading n by n lower triangular part of the array A must contain the lower triangular matrix and the strictly upper triangular part of A is not referenced. Note that when DIAG = 'U' or 'u', the diagonal elements of A are not referenced either, but are assumed to be unity. periodt, the triangle is the moment πŸ’…
  • LDA β€” LDA is INTEGER. On entry, LDA specifies the first dimension of A as declared in the calling (sub) program. LDA must be at least max( 1, n ). like, don't try to be cute and make it smaller, okay? πŸ™ˆ
  • X β€” X is COMPLEX*16 array, dimension at least ( 1 + ( n - 1 )*abs( INCX ) ). Before entry, the incremented array X must contain the n element right-hand side vector b. On exit, X is overwritten with the solution vector x. she comes in as b and leaves as x β€” glow-up fr fr ✨
  • INCX β€” INCX is INTEGER. On entry, INCX specifies the increment for the elements of X. INCX must not be zero. do NOT set this to zero, bestie, it's giving undefined chaos πŸ’€

πŸ‘‘ Author πŸ‘‘

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

the academic royalty of linear algebra, no cap πŸŽ€


πŸ’« Further Details πŸ’«

Level 2 Blas routine.

-- Written on 22-October-1986.
   Jack Dongarra, Argonne National Lab.
   Jeremy Du Croz, Nag Central Office.
   Sven Hammarling, Nag Central Office.
   Richard Hanson, Sandia National Labs.

literal legends wrote this in 1986 and we're still using it β€” main character energy forever πŸ‘‘


πŸ“œ Author πŸ“œ

Generated automatically by Doxygen for LAPACK from the source code.


and that's the whole vibe, bestie πŸ’– this was LAPACK version 3.11.0, dated Sun Nov 27 2022, from the complex16_blas_level2(3) page. stay triangular, stay slay, and never let anyone tell you your INCX is zero βœ¨πŸ’…πŸ¦‹

πŸ“¦ where this page comes from