SRC/zlaset.f(3)
π SRC/zlaset.f π
okay bestie, this is the SRC/zlaset.f(3) page from the Library Functions Manual β and ngl, it's a whole little icon of a LAPACK file. The title is SRC/zlaset.f, and it's here to teach you how to set a matrix's diagonal and off-diagonal elements to values you choose. Periodt. β¨
πΈ NAME πΈ
SRC/zlaset.f β that's the name, no cap. Short, sweet, and lowkey main-character energy. π
β¨ SYNOPSIS β¨
π§ Functions/Subroutines π§
subroutine zlaset (uplo, m, n, alpha, beta, a, lda)βZLASETinitializes the off-diagonal elements and the diagonal elements of a matrix to given values.
subroutine zlaset (uplo, m, n, alpha, beta, a, lda)
Like, it literally goes in and sets the off-diagonal elements and diagonal elements of a matrix to the values you give it. Slay. π
π Function/Subroutine Documentation π
subroutine zlaset (character uplo, integer m, integer n, complex*16 alpha,
complex*16 beta, complex*16, dimension( lda, * ) a, integer lda)
The whole mood: ZLASET initializes the off-diagonal elements and the diagonal elements of a matrix to given values. Iconic behavior, honestly. π¦
π Purpose π
The source's Purpose block says this, verbatim:
!>
!> ZLASET initializes a 2-D array A to BETA on the diagonal and
!> ALPHA on the offdiagonals.
!>
So bestie, the diagonal gets BETA, the offdiagonals get ALPHA, and the vibe check is passed. π₯
π Parameters π
UPLO
UPLOβUPLO is CHARACTER*1. It specifies which part of matrixAgets set.= 'U': the upper triangular part is set. The lower triangle is unchanged.= 'L': the lower triangular part is set. The upper triangle is unchanged.- Otherwise: all of matrix
Ais set.
M
MβM is INTEGER. On entry,Mspecifies the number of rows ofA.
N
NβN is INTEGER. On entry,Nspecifies the number of columns ofA.
ALPHA
ALPHAβALPHA is COMPLEX*16. All the offdiagonal array elements are set toALPHA.
BETA
BETAβBETA is COMPLEX*16. All the diagonal array elements are set toBETA.
A
AβA is COMPLEX*16 array, dimension (LDA,N). On entry, thembynmatrixA. On exit:
A(i,j) = ALPHA, 1 <= i <= m, 1 <= j <= n, i.ne.j;
A(i,i) = BETA , 1 <= i <= min(m,n)
LDA
LDAβLDA is INTEGER. The leading dimension of the arrayA.LDA >= max(1,M).
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 105 of file zlaset.f. π
π« Author π«
Generated automatically by Doxygen for LAPACK from the source code.
And that's the whole page, bestie π This one is from LAPACK, Version 3.12.0, sourced from SRC/zlaset.f(3) and the source code. Mwah! π«Άβ¨
π¦ where this page comes from
- arch rolling: lapack-doc 3.12.1-2 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms