TESTING/EIG/sget10.f(3)
π 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
- arch rolling: lapack-doc 3.12.1-2 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms