trsm(3)

๐Ÿ“ฆ
version 3.12.0 ยท 4 versions
, in centos-stream 10, fedora 43, fedora 44

๐Ÿ’– trsm(3) โ€” LAPACK ๐Ÿ’–

okay bestie, sit DOWN, because we're about to talk about trsm, aka the triangular matrix-matrix solve ๐Ÿ’…โœจ This is a LAPACK girlie and she is booked and busy solving matrix equations for you.


โœจ NAME โœจ

trsm โ€” it's giving triangular matrix-matrix solve ๐ŸŽ€ no cap.


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

Functions

  • subroutine ctrsm (side, uplo, transa, diag, m, n, alpha, a, lda, b, ldb) โ€” CTRSM ๐Ÿ’œ
  • subroutine dtrsm (side, uplo, transa, diag, m, n, alpha, a, lda, b, ldb) โ€” DTRSM ๐Ÿ’œ
  • subroutine strsm (side, uplo, transa, diag, m, n, alpha, a, lda, b, ldb) โ€” STRSM ๐Ÿ’œ
  • subroutine ztrsm (side, uplo, transa, diag, m, n, alpha, a, lda, b, ldb) โ€” ZTRSM ๐Ÿ’œ

๐ŸŒธ Detailed Description ๐ŸŒธ

(like, the whole breakdown lives down here, keep scrolling bestie ๐Ÿซถ)


๐Ÿ‘‘ Function Documentation ๐Ÿ‘‘

๐Ÿ’… subroutine ctrsm

subroutine ctrsm (character side, character uplo, character transa,
    character diag, integer m, integer n, complex alpha, complex,
    dimension(lda,*) a, integer lda, complex, dimension(ldb,*) b, integer
    ldb)

CTRSM โœจ

๐Ÿ“ Purpose:

CTRSM solves one of the matrix equations, and yes she does it in ONE go:

op( A )*X = alpha*B,   or   X*op( A ) = alpha*B,

where alpha is a scalar, X and B are m by n matrices, A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is one of

op( A ) = A   or   op( A ) = A**T   or   op( A ) = A**H.

The matrix X is overwritten on B. (iconic behaviour, honestly โ€” she does NOT ask permission, she just writes over it ๐Ÿ’€)

๐ŸŒˆ Parameters

  • SIDE โ€” SIDE is CHARACTER*1. On entry, SIDE specifies whether op( A ) appears on the left or right of X as follows:
SIDE = 'L' or 'l'   op( A )*X = alpha*B.

SIDE = 'R' or 'r'   X*op( A ) = alpha*B.
  • UPLO โ€” UPLO is CHARACTER*1. On entry, UPLO specifies whether the matrix A 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.
  • TRANSA โ€” TRANSA is CHARACTER*1. On entry, TRANSA specifies the form of op( A ) to be used in the matrix multiplication as follows:
TRANSA = 'N' or 'n'   op( A ) = A.

TRANSA = 'T' or 't'   op( A ) = A**T.

TRANSA = 'C' or 'c'   op( A ) = A**H.
  • 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.
  • M โ€” M is INTEGER. On entry, M specifies the number of rows of B. M must be at least zero.
  • N โ€” N is INTEGER. On entry, N specifies the number of columns of B. N must be at least zero.
  • ALPHA โ€” ALPHA is COMPLEX. On entry, ALPHA specifies the scalar alpha. When alpha is zero then A is not referenced and B need not be set before entry. (she's literally like "no thoughts, no setup, just vibes" when alpha is zero ๐Ÿ˜ญ)
  • A โ€” A is COMPLEX array, dimension ( LDA, k ), where k is m when SIDE = 'L' or 'l' and k is n when SIDE = 'R' or 'r'. Before entry with UPLO = 'U' or 'u', the leading k by k 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 k by k 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. When SIDE = 'L' or 'l' then LDA must be at least max( 1, m ), when SIDE = 'R' or 'r' then LDA must be at least max( 1, n ).
  • B โ€” B is COMPLEX array, dimension ( LDB, N ). Before entry, the leading m by n part of the array B must contain the right-hand side matrix B, and on exit is overwritten by the solution matrix X.
  • LDB โ€” LDB is INTEGER. On entry, LDB specifies the first dimension of B as declared in the calling (sub) program. LDB must be at least max( 1, m ).

๐ŸŒŸ Author

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

๐Ÿ’ซ Further Details:

Level 3 Blas routine.

-- Written on 8-February-1989.
   Jack Dongarra, Argonne National Laboratory.
   Iain Duff, AERE Harwell.
   Jeremy Du Croz, Numerical Algorithms Group Ltd.
   Sven Hammarling, Numerical Algorithms Group Ltd.

Definition at line 179 of file ctrsm.f. ๐Ÿ“Œ


๐Ÿงš subroutine dtrsm

subroutine dtrsm (character side, character uplo, character transa,
    character diag, integer m, integer n, double precision alpha, double
    precision, dimension(lda,*) a, integer lda, double precision,
    dimension(ldb,*) b, integer ldb)

DTRSM โœจ

๐Ÿ“ Purpose:

DTRSM solves one of the matrix equations:

op( A )*X = alpha*B,   or   X*op( A ) = alpha*B,

where alpha is a scalar, X and B are m by n matrices, A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is one of

op( A ) = A   or   op( A ) = A**T.

The matrix X is overwritten on B. (again โ€” no hesitation, she just does it ๐Ÿ’…)

๐ŸŒˆ Parameters

  • SIDE โ€” SIDE is CHARACTER*1. On entry, SIDE specifies whether op( A ) appears on the left or right of X as follows:
SIDE = 'L' or 'l'   op( A )*X = alpha*B.

SIDE = 'R' or 'r'   X*op( A ) = alpha*B.
  • UPLO โ€” UPLO is CHARACTER*1. On entry, UPLO specifies whether the matrix A 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.
  • TRANSA โ€” TRANSA is CHARACTER*1. On entry, TRANSA specifies the form of op( A ) to be used in the matrix multiplication as follows:
TRANSA = 'N' or 'n'   op( A ) = A.

TRANSA = 'T' or 't'   op( A ) = A**T.

TRANSA = 'C' or 'c'   op( A ) = A**T.
  • 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.
  • M โ€” M is INTEGER. On entry, M specifies the number of rows of B. M must be at least zero.
  • N โ€” N is INTEGER. On entry, N specifies the number of columns of B. N must be at least zero.
  • ALPHA โ€” ALPHA is DOUBLE PRECISION. On entry, ALPHA specifies the scalar alpha. When alpha is zero then A is not referenced and B need not be set before entry.
  • A โ€” A is DOUBLE PRECISION array, dimension ( LDA, k ), where k is m when SIDE = 'L' or 'l' and k is n when SIDE = 'R' or 'r'. Before entry with UPLO = 'U' or 'u', the leading k by k 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 k by k 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. When SIDE = 'L' or 'l' then LDA must be at least max( 1, m ), when SIDE = 'R' or 'r' then LDA must be at least max( 1, n ).
  • B โ€” B is DOUBLE PRECISION array, dimension ( LDB, N ). Before entry, the leading m by n part of the array B must contain the right-hand side matrix B, and on exit is overwritten by the solution matrix X.
  • LDB โ€” LDB is INTEGER. On entry, LDB specifies the first dimension of B as declared in the calling (sub) program. LDB must be at least max( 1, m ).

๐ŸŒŸ Author

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

๐Ÿ’ซ Further Details:

Level 3 Blas routine.

-- Written on 8-February-1989.
   Jack Dongarra, Argonne National Laboratory.
   Iain Duff, AERE Harwell.
   Jeremy Du Croz, Numerical Algorithms Group Ltd.
   Sven Hammarling, Numerical Algorithms Group Ltd.

Definition at line 180 of file dtrsm.f. ๐Ÿ“Œ


๐ŸŒˆ subroutine strsm

subroutine strsm (character side, character uplo, character transa,
    character diag, integer m, integer n, real alpha, real, dimension(lda,*)
    a, integer lda, real, dimension(ldb,*) b, integer ldb)

STRSM โœจ

๐Ÿ“ Purpose:

STRSM solves one of the matrix equations:

op( A )*X = alpha*B,   or   X*op( A ) = alpha*B,

where alpha is a scalar, X and B are m by n matrices, A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is one of

op( A ) = A   or   op( A ) = A**T.

The matrix X is overwritten on B. (the audacity?? love that for her ๐Ÿซถ)

๐ŸŒˆ Parameters

  • SIDE โ€” SIDE is CHARACTER*1. On entry, SIDE specifies whether op( A ) appears on the left or right of X as follows:
SIDE = 'L' or 'l'   op( A )*X = alpha*B.

SIDE = 'R' or 'r'   X*op( A ) = alpha*B.
  • UPLO
  • UPLO โ€” CHARACTER*1. On entry, UPLO specifies whether the matrix A is an upper or lower triangular matrix, and it's giving triangle realness ๐Ÿ”บ:
    • UPLO = 'U' or 'u' โ†’ A is an upper triangular matrix. โœจ
    • UPLO = 'L' or 'l' โ†’ A is a lower triangular matrix. ๐Ÿ’…
  • TRANSA โ€” CHARACTER*1. On entry, TRANSA specifies the form of op( A ) to be used in the matrix multiplication, no cap ๐Ÿงฎ:
    • TRANSA = 'N' or 'n' โ†’ op( A ) = A.
    • TRANSA = 'T' or 't' โ†’ op( A ) = A**T.
    • TRANSA = 'C' or 'c' โ†’ op( A ) = A**T.
  • DIAG โ€” CHARACTER*1. On entry, DIAG specifies whether or not A is unit triangular, bestie ๐Ÿซถ:
    • DIAG = 'U' or 'u' โ†’ A is assumed to be unit triangular.
    • DIAG = 'N' or 'n' โ†’ A is not assumed to be unit triangular.
  • M โ€” INTEGER. On entry, M specifies the number of rows of B. M must be at least zero. ๐Ÿ“
  • N โ€” INTEGER. On entry, N specifies the number of columns of B. N must be at least zero. ๐Ÿ“
  • ALPHA โ€” REAL. On entry, ALPHA specifies the scalar alpha. When alpha is zero then A is not referenced and B need not be set before entry. ๐Ÿ”ฅ
  • A โ€” REAL array, dimension ( LDA, k ), where k is m when SIDE = 'L' or 'l', and k is n when SIDE = 'R' or 'r'. Before entry with UPLO = 'U' or 'u', the leading k by k 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 k by k 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 โ€” INTEGER. On entry, LDA specifies the first dimension of A as declared in the calling (sub) program. When SIDE = 'L' or 'l' then LDA must be at least max( 1, m ), when SIDE = 'R' or 'r' then LDA must be at least max( 1, n ). ๐Ÿ“
  • B โ€” REAL array, dimension ( LDB, N ). Before entry, the leading m by n part of the array B must contain the right-hand side matrix B, and on exit is overwritten by the solution matrix X. ๐Ÿ’–
  • LDB โ€” INTEGER. On entry, LDB specifies the first dimension of B as declared in the calling (sub) program. LDB must be at least max( 1, m ). ๐Ÿ“

๐Ÿซถ Author

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

๐Ÿ”ฅ Further Details

Level 3 Blas routine.

-- Written on 8-February-1989.
   Jack Dongarra, Argonne National Laboratory.
   Iain Duff, AERE Harwell.
   Jeremy Du Croz, Numerical Algorithms Group Ltd.
   Sven Hammarling, Numerical Algorithms Group Ltd.

Definition at line 180 of file strsm.f.

๐Ÿ’œ ZTRSM ๐Ÿ’œ

   subroutine ztrsm (character side, character uplo, character transa,
       character diag, integer m, integer n, complex*16 alpha, complex*16,
       dimension(lda,*) a, integer lda, complex*16, dimension(ldb,*) b, integer
       ldb)

๐ŸŽฏ Purpose

ZTRSM solves one of the matrix equations

op( A )*X = alpha*B,   or   X*op( A ) = alpha*B,

where alpha is a scalar, X and B are m by n matrices, A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is one of

op( A ) = A   or   op( A ) = A**T   or   op( A ) = A**H.

The matrix X is overwritten on B.

๐Ÿ“‹ Parameters

  • SIDE โ€” CHARACTER*1. On entry, SIDE specifies whether op( A ) appears on the left or right of X, and it's giving directional energy ๐Ÿงญ:
    • SIDE = 'L' or 'l' โ†’ op( A )*X = alpha*B.
    • SIDE = 'R' or 'r' โ†’ X*op( A ) = alpha*B.
  • UPLO โ€” CHARACTER*1. On entry, UPLO specifies whether the matrix A 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.
  • TRANSA โ€” CHARACTER*1. On entry, TRANSA specifies the form of op( A ) to be used in the matrix multiplication, and it's lowkey important ๐Ÿงฎ:
    • TRANSA = 'N' or 'n' โ†’ op( A ) = A.
    • TRANSA = 'T' or 't' โ†’ op( A ) = A**T.
    • TRANSA = 'C' or 'c' โ†’ op( A ) = A**H.
  • DIAG โ€” CHARACTER*1. On entry, DIAG specifies whether or not A is unit triangular, fr fr:
    • DIAG = 'U' or 'u' โ†’ A is assumed to be unit triangular.
    • DIAG = 'N' or 'n' โ†’ A is not assumed to be unit triangular.
  • M โ€” INTEGER. On entry, M specifies the number of rows of B. M must be at least zero.
  • N โ€” INTEGER. On entry, N specifies the number of columns of B. N must be at least zero.
  • ALPHA โ€” COMPLEX*16. On entry, ALPHA specifies the scalar alpha. When alpha is zero then A is not referenced and B need not be set before entry.
  • A โ€” COMPLEX*16 array, dimension ( LDA, k ), where k is m when SIDE = 'L' or 'l' and k is n when SIDE = 'R' or 'r'. Before entry with UPLO = 'U' or 'u', the leading k by k 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 k by k 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 โ€” INTEGER. On entry, LDA specifies the first dimension of A as declared in the calling (sub) program. When SIDE = 'L' or 'l' then LDA must be at least max( 1, m ), when SIDE = 'R' or 'r' then LDA must be at least max( 1, n ).
  • B โ€” COMPLEX*16 array, dimension ( LDB, N ). Before entry, the leading m by n part of the array B must contain the right-hand side matrix B, and on exit is overwritten by the solution matrix X.
  • LDB โ€” INTEGER. On entry, LDB specifies the first dimension of B as declared in the calling (sub) program. LDB must be at least max( 1, m ).

๐Ÿซถ Author

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

๐Ÿ”ฅ Further Details

Level 3 Blas routine.

-- Written on 8-February-1989.
   Jack Dongarra, Argonne National Laboratory.
   Iain Duff, AERE Harwell.
   Jeremy Du Croz, Numerical Algorithms Group Ltd.
   Sven Hammarling, Numerical Algorithms Group Ltd.

Definition at line 179 of file ztrsm.f.

Author

Generated automatically by Doxygen for LAPACK from the source code.


And that's the whole vibe, bestie! ๐Ÿ’– This page is from LAPACK version 3.12.0, dated Tue Nov 28 2023 12:08:43, and it's the trsm(3) manual page. Stay triangular, stay slay! โœจ๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from