lis_esolver...esidualnorm(3)
π lis_esolver_get_residualnorm β bestie edition π
okay so this is a page from the Lis Library Functions manual (the whole lis_esolver...esidualnorm(3) situation, iykyk) and honestly? it's a little baddie. let's get into it π«Ά
β¨ NAME β¨
lis_esolver_get_residualnorm β get the relative residual norm for the specified eigenpair from the eigensolver πΈ
like. it tells you how good your eigenpair is doing. a little vibe check for your math, fr fr.
β¨ SYNOPSIS β¨
#include "lis.h"
LIS_INT lis_esolver_get_residualnorm(LIS_ESOLVER esolver, LIS_REAL
*residual);
yes bestie you gotta #include "lis.h" first, that's non-negotiable π
β¨ DESCRIPTION β¨
okay so what this does is: it gets the relative residual norm for the eigenpair you specified, straight from the eigensolver. and the formula, no cap, is literally:
||lx - Ax||_2/||lx||_2
that's it. that's the whole thing. it's giving "how far off am i" energy and honestly we love a self-aware function π¦
β¨ INPUT β¨
esolverβ the eigensolver π (yes. that one. the eigensolver.)
β¨ OUTPUT β¨
residualβ the relative residual norm, and it is exactly||lx - Ax||_2/||lx||_2β¨
β¨ EXIT STATUS β¨
the following exit values are returned, and you will be checking them:
0β the process is normally terminated π slay, everything's fine, go offunspecifiedβ an error occurred π not the vibe. something went wrong.
fr fr, don't just ignore the exit status. "unspecified" is doing a lot of heavy lifting there and it's not a compliment π
β¨ SEE ALSO β¨
go read lis(3) bestie, it's the main character of this whole franchise π
and that's the tea π this page came from the Lis Library Functions manual, dated 28 Aug 2014, and it lives at lis_esolver...esidualnorm(3). iconic behavior honestly. now go get those residual norms, you absolute legend πβ¨
π¦ where this page comes from
- fedora 43: lis-doc 2.0.21-13.fc41 Β· BSD
- fedora 43: lis-doc 2.1.11-1.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: lis-doc 2.0.21-13.fc41 Β· BSD
- fedora 44: lis-doc 2.1.11-1.fc44 Β· LicenseRef-Callaway-BSD
- nixos 26.05: lis 2.1.10
- nixpkgs unstable: lis 2.1.16
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms