BLAS/SRC/dtrsm.f(3)
π BLAS/SRC/dtrsm.f(3) π
okay bestie, gather round, because we're reading a LAPACK page together and honestly? it's giving iconic BLAS energy. this one lives in LAPACK under BLAS/SRC/dtrsm.f(3) and it's about to solve some triangular matrix equations with you. no cap. π¦
β¨ NAME β¨
BLAS/SRC/dtrsm.f β that's the file, that's the whole name section, periodt. π
πΈ SYNOPSIS πΈ
Functions/Subroutines
subroutine dtrsm (side, uplo, transa, diag, m, n, alpha, a, lda, b, ldb)β the moment we've all been waiting for: DTRSM itself π
π Function/Subroutine Documentation π
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:
so like, DTRSM solves one of these 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.
and the way that the matrix X just gets overwritten on B?? efficiency icon behavior fr fr. π
π 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'βAis an upper triangular matrix.UPLO = 'L' or 'l'βAis 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'βAis assumed to be unit triangular.DIAG = 'N' or 'n'βAis 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. (yes bestie, at least zero, we don't do negative rows here π)
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. that's the free real estate right there π
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. lowkey they're just vibing, untouched, assumed perfect. β¨
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. she transforms, she's the main character now π
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.
not the 1989 date?? these legends really said "we'll write the BLAS and it'll outlive us all" and they were SO right. π₯π
π Definition at line 180 of file dtrsm.f.
π§ Author
Generated automatically by Doxygen for LAPACK from the source code. (yes bestie, a robot wrote this page, we're just here to make it cute π)
and that's the whole page!! tysm for reading, you understood all of it, no notes, slay. πβ¨
LAPACK Version 3.12.0 β Tue Nov 28 2023 12:08:41 β mwah, love u, go solve a triangular system π¦π πΈ
π¦ where this page comes from
- centos-stream 10: blas 3.12.0-7.el10 Β· BSD-3-Clause-Open-MPI
- fedora 43: blas 3.12.0-10.fc43 Β· BSD-3-Clause-Open-MPI
- fedora 43: blas 3.12.0-10.fc43 Β· BSD-3-Clause-Open-MPI
- fedora 44: blas 3.12.0-11.fc44 Β· BSD-3-Clause-Open-MPI
- fedora 44: blas 3.12.0-11.fc44 Β· BSD-3-Clause-Open-MPI
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms