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) β€” ZLASET initializes 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 matrix A 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 matrix A is set.

M

  • M β€” M is INTEGER. On entry, M specifies the number of rows of A.

N

  • N β€” N is INTEGER. On entry, N specifies the number of columns of A.

ALPHA

  • ALPHA β€” ALPHA is COMPLEX*16. All the offdiagonal array elements are set to ALPHA.

BETA

  • BETA β€” BETA is COMPLEX*16. All the diagonal array elements are set to BETA.

A

  • A β€” A is COMPLEX*16 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

  • LDA β€” LDA is INTEGER. The leading dimension of the array A. 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