SQRT01(3)

πŸ“¦ version 3.12.0, in opensuse-leap 16.0

πŸ’– SQRT01(3) β€” LAPACK Library Functions Manual πŸ’–

okay bestie, this is the <sqrt01.f> page from the LAPACK Library Functions Manual, and it’s here to test some QR factorization behavior. Let’s get into it 🫢


🌸 NAME 🌸

/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/LIN/sqrt01.f


✨ SYNOPSIS ✨

🌈 Functions/Subroutines 🌈

subroutine SQRT01 (m, n, a, af, q, r, lda, tau, work, lwork, rwork,
    result)
    SQRT01

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

πŸ’… subroutine SQRT01

subroutine SQRT01 (integer m, integer n, real, dimension( lda, * ) a, real,
    dimension( lda, * ) af, real, dimension( lda, * ) q, real, dimension(
    lda, * ) r, integer lda, real, dimension( * ) tau, real, dimension(
    lwork ) work, integer lwork, real, dimension( * ) rwork, real,
    dimension( * ) result)
    SQRT01

πŸŽ€ Purpose πŸŽ€

So basically, SQRT01 tests SGEQRF, which computes the QR factorization of an m-by-n matrix A, and it also partially tests SORGQR, which forms the m-by-m orthogonal matrix Q.

SQRT01 compares R with Q'*A, and checks that Q is orthogonal. slay. ✨

πŸ“ Parameters πŸ“

  • M β€” M is INTEGER. The number of rows of the matrix A. M >= 0.
  • N β€” N is INTEGER. The number of columns of the matrix A. N >= 0.
  • A β€” A is REAL array, dimension (LDA,N). The m-by-n matrix A.
  • AF β€” AF is REAL array, dimension (LDA,N). Details of the QR factorization of A, as returned by SGEQRF. See SGEQRF for further details.
  • Q β€” Q is REAL array, dimension (LDA,M). The m-by-m orthogonal matrix Q.
  • R β€” R is REAL array, dimension (LDA,max(M,N)).
  • LDA β€” LDA is INTEGER. The leading dimension of the arrays A, AF, Q and R. LDA >= max(M,N).
  • TAU β€” TAU is REAL array, dimension (min(M,N)). The scalar factors of the elementary reflectors, as returned by SGEQRF.
  • WORK β€” WORK is REAL array, dimension (LWORK).
  • LWORK β€” LWORK is INTEGER. The dimension of the array WORK.
  • RWORK β€” RWORK is REAL array, dimension (M).
  • RESULT β€” RESULT is REAL array, dimension (2). The test ratios:
RESULT(1) = norm( R - Q'*A ) / ( M * norm(A) * EPS )
RESULT(2) = norm( I - Q'*Q ) / ( M * EPS )

πŸ‘‘ Author πŸ‘‘

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

Definition at line 124 of file sqrt01.f.


🌟 Author 🌟

Generated automatically by Doxygen for LAPACK from the source code.


πŸ’– xoxo, bestie β€” this page signs off with LAPACK Version 3.12.0 and the footer path <hotpink>/home/abui...IN/sqrt01.f(3)</hotpink> πŸ’…βœ¨

πŸ“¦ where this page comes from