SLASET(3)
Bestie, okay so this is SLASET(3) from the Library Functions Manual β header path is /home/abui...RC/slaset.f(3), and the LAPACK energy is lowkey immaculate. π
β¨ Itβs giving βset a matrixβs diagonal and off-diagonal entries to constants,β and honestly? This subroutine ate and left no crumbs.
π NAME π
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/slaset.f
β¨ SYNOPSIS β¨
π Functions/Subroutines π
subroutine SLASET (uplo, m, n, alpha, beta, a, lda)
SLASETβ initializes the off-diagonal elements and the diagonal elements of a matrix to given values. No cap. π«Ά
π Function/Subroutine Documentation π
Full signature, exactly as the page has it:
subroutine SLASET (character uplo, integer m, integer n, real alpha, real beta, real, dimension( lda, * ) a, integer lda)
SLASET initializes the off-diagonal elements and the diagonal elements of a matrix to given values. π
π¦ Purpose π¦
SLASET initializes an m-by-n matrix A to BETA on the diagonal and ALPHA on the offdiagonals. Thatβs the whole vibe check, fr fr. β¨
πΈ Parameters πΈ
UPLOβCHARACTER*1. Specifies the part of the matrix A to be set.'U': Upper triangular part is set; the strictly lower triangular part of A is not changed.'L': Lower triangular part is set; the strictly upper triangular part of A is not changed. Otherwise: All of the matrix A is set. π«ΆMβINTEGER. The number of rows of the matrix A.M >= 0.NβINTEGER. The number of columns of the matrix A.N >= 0.ALPHAβREAL. The constant to which the offdiagonal elements are to be set.BETAβREAL. The constant to which the diagonal elements are to be set.AβREALarray, dimension(LDA,N). On exit, the leading m-by-n submatrix of A is set as follows:
if UPLO = 'U', A(i,j) = ALPHA, 1<=i<=j-1, 1<=j<=n,
if UPLO = 'L', A(i,j) = ALPHA, j+1<=i<=m, 1<=j<=n,
otherwise, A(i,j) = ALPHA, 1<=i<=m, 1<=j<=n, i.ne.j,
and, for all UPLO, A(i,i) = BETA, 1<=i<=min(m,n).
Not me reading those exact assignment conditions like a main character. ππ
LDAβINTEGER. The leading dimension of the array A.LDA >= max(1,M). iykyk.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 109 of file slaset.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
Later, bestie! π«Ά This page signs off from LAPACK Version 3.12.0, page /home/abui...RC/slaset.f(3). Periodt. π
π¦ 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