SRC/claset.f(3)

πŸ’… NAME πŸ’…

SRC/claset.f β€” okay bestie, this is the SRC/claset.f(3) page from the Library Functions Manual, and it's all about the claset subroutine. πŸ’–

✨ SYNOPSIS ✨

Functions/Subroutines

subroutine claset (uplo, m, n, alpha, beta, a, lda)

CLASET initializes the off-diagonal elements and the diagonal elements of a matrix to given values. Periodt. 🫢

πŸ¦‹ Function/Subroutine Documentation πŸ¦‹

πŸ’œ subroutine claset (character uplo, integer m, integer n, complex alpha, complex beta, complex, dimension( lda, * ) a, integer lda) πŸ’œ

CLASET initializes the off-diagonal elements and the diagonal elements of a matrix to given values. Yes, same iconic line β€” it's literally the doc. ✨

πŸŽ€ Purpose πŸŽ€

CLASET initializes a 2-D array A to BETA on the diagonal and ALPHA on the offdiagonals. No cap. ✨

🌈 Parameters 🌈

  • UPLO β€” type CHARACTER*1. Specifies the part of the matrix A that gets 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 the matrix A is set. πŸ’…
  • M β€” type INTEGER. On entry, M specifies the number of rows of A.
  • N β€” type INTEGER. On entry, N specifies the number of columns of A.
  • ALPHA β€” type COMPLEX. All the offdiagonal array elements are set to ALPHA.
  • BETA β€” type COMPLEX. All the diagonal array elements are set to BETA.
  • A β€” type COMPLEX array, dimension (LDA,N). On entry, the m by n matrix A. 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 β€” type INTEGER. The leading dimension of the array A. LDA >= max(1,M). Respect the leading dimension, bestie. 🫢

πŸ‘‘ Author πŸ‘‘

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

Definition at line 105 of file claset.f.

⭐ Author ⭐

Generated automatically by Doxygen for LAPACK from the source code.


And we're done, bestie: this page is from SRC/claset.f(3), LAPACK Version 3.12.0. The footer doesn't give us a date, so no invented date here β€” slay anyway. πŸ’–

πŸ“¦ where this page comes from