TESTING/EIG/sget10.f(3)

πŸ“¦
version 3.12.1 Β· 3 versions
, in arch rolling

πŸ’… TESTING/EIG/sget10.f β€” from the LAPACK Library Functions Manual

okay so bestie, welcome to sget10.f(3) πŸ’– this is a page straight out of the LAPACK manual (the TESTING/EIG corner of it, specifically 🧚), and it's all about one little subroutine that grades your matrices. yes, grades them. like a professor but for floating point. let's get into it ✨


✨ NAME ✨

TESTING/EIG/sget10.f β€” the file, the vibe, the whole entire moment πŸŽ€


🌸 SYNOPSIS 🌸

Functions/Subroutines

  • subroutine sget10 (m, n, a, lda, b, ldb, work, result) β€” the one and only. that's her. that's the subroutine πŸ’…
subroutine sget10 (m, n, a, lda, b, ldb, work, result)

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

subroutine sget10 (integer m, integer n, real, dimension( lda, * ) a, integer lda, real, dimension( ldb, * ) b, integer ldb, real, dimension( * ) work, real result)

SGET10

🎯 Purpose

ok so the whole point of her (and she's very clear about it, no cap):

!>
!> SGET10 compares two matrices A and B and computes the ratio
!> RESULT = norm( A - B ) / ( norm(A) * M * EPS )
!>

that's it. that's the job. she takes two matrices, looks at how different they are, and normalizes that difference by norm(A) * M * EPS so you get a nice comparable number back. iconic behavior honestly πŸ‘‘

🌈 Parameters

  • M
!>          M is INTEGER
!>          The number of rows of the matrices A and B.
!>

the row count, for both matrices. she's counting rows of A and B, same number for each πŸ’–

  • N
!>          N is INTEGER
!>          The number of columns of the matrices A and B.
!>

the column count, again for both. A and B are matching-shape besties fr fr 🫢

  • A
!>          A is REAL array, dimension (LDA,N)
!>          The m by n matrix A.
!>

matrix numero uno, a REAL array of dimension (LDA,N), m by n πŸ’œ

  • LDA
!>          LDA is INTEGER
!>          The leading dimension of the array A.  LDA >= max(1,M).
!>

the leading dimension of A. hard requirement: LDA >= max(1,M). not a suggestion, bestie, a requirement 😌

  • B
!>          B is REAL array, dimension (LDB,N)
!>          The m by n matrix B.
!>

matrix numero dos, REAL array of dimension (LDB,N), also m by n. the comparison partner 🌸

  • LDB
!>          LDB is INTEGER
!>          The leading dimension of the array B.  LDB >= max(1,M).
!>

leading dimension of B, and yes: LDB >= max(1,M). same energy as LDA πŸ’«

  • WORK
!>          WORK is REAL array, dimension (M)
!>

scratch space, REAL array of dimension (M). she needs room to do the math, okay? πŸŽ€

  • RESULT
!>          RESULT is REAL
!>          RESULT = norm( A - B ) / ( norm(A) * M * EPS )
!>

the payoff πŸ’– a REAL number, and it equals norm( A - B ) / ( norm(A) * M * EPS ). this is the grade she hands back to you ⭐

πŸ‘‘ Author

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

πŸ“Œ Definition

definition lives at line 92 of file sget10.f.


πŸ”₯ Author (again, yes really)

generated automatically by Doxygen for LAPACK from the source code. so nobody hand-wrote this page, a robot did it, and honestly? she ate πŸ€–πŸ’…


that's the whole page!! every flag, every dimension, every LDA >= max(1,M) accounted for, no cap πŸ§šπŸ’œ mwah, go compare some matrices bestie

β€” with love, from LAPACK, Version 3.12.0, on page TESTING/EIG/sget10.f(3) πŸ“πŸ¦‹βœ¨

πŸ“¦ where this page comes from