CLASET(3)
πΈ CLASET(3) β NAME πΈ
Okay bestie, welcome to CLASET(3) from the Library Functions Manual β sheβs a LAPACK function and sheβs about to make your matrix look exactly how you want π β¨
The official file path for this page is /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/claset.f.
β¨ SYNOPSIS β¨
This one lives under Functions/Subroutines, and the call looks like this:
subroutine CLASET (uplo, m, n, alpha, beta, a, lda)
And what does she do? CLASET initializes the off-diagonal elements and the diagonal elements of a matrix to given values. Periodt. π
π« Function/Subroutine Documentation π«
Hereβs the full signature, bestie β every type and dimension exactly where it belongs:
subroutine CLASET (character uplo, integer m, integer n, complex alpha,
complex beta, complex, dimension( lda, * ) a, integer lda)
Again, the vibe: CLASET initializes the off-diagonal elements and the diagonal elements of a matrix to given values. π«Ά
π Purpose π
The source says it like this, and Iβm keeping it verbatim because sheβs iconic:
!>
!> CLASET initializes a 2-D array A to BETA on the diagonal and
!> ALPHA on the offdiagonals.
!>
So yes: diagonal gets BETA, off-diagonals get ALPHA. Itβs giving βcontrolled chaos, but make it linear algebra.β ππ₯
π§ Parameters π§
UPLOβCHARACTER*1. This tells her which part of matrixAto set.= 'U': the upper triangular part is set, and the lower triangle is unchanged.= 'L': the lower triangular part is set, and the upper triangle is unchanged. Otherwise: all of matrixAis set. Slay, flexible queen. πMβINTEGER. On entry,Mspecifies the number of rows ofA.NβINTEGER. On entry,Nspecifies the number of columns ofA.ALPHAβCOMPLEX. All the offdiagonal array elements are set toALPHA.BETAβCOMPLEX. All the diagonal array elements are set toBETA.AβCOMPLEXarray, dimension(LDA,N). On entry, thembynmatrixA. On exit, the exact formula is:
On exit, A(i,j) = ALPHA, 1 <= i <= m, 1 <= j <= n, i.ne.j;
A(i,i) = BETA , 1 <= i <= min(m,n)
That means off-diagonals become ALPHA, and diagonals become BETA up to min(m,n). No cap, thatβs just the math. π¦
LDAβINTEGER. The leading dimension of the arrayA.LDA >= max(1,M).
bestie, LDA >= max(1,M) is not a suggestion, itβs the rule. π
π Author π
This subroutine is brought to you by:
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Sheβs defined at line 105 of file claset.f. π
π Author π
This page was generated automatically by Doxygen for LAPACK from the source code. π€π
Okay bestie, thatβs the whole page. Signing off with LAPACK Version 3.12.0 and the footer path /home/abui...RC/claset.f(3) β mwah πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms