lis_solver...esidualnorm(3)

πŸ“¦ version 2.1.11, in fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

✨ lis_solver_get_residualnorm ✨

okay bestie, welcome to the Lis Library Functions corner of the manual πŸ’– this one's a lil function called lis_solver_get_residualnorm, and it's here to do one very specific, very slay thing.


πŸŽ€ NAME πŸŽ€

lis_solver_get_residualnorm β€” calculate the relative residual norm from the solution πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include "lis.h"

LIS_INT lis_solver_get_residualnorm(LIS_SOLVER solver, LIS_INT
*residual);

🌸 DESCRIPTION 🌸

so basically, this function takes your solution x and computes the relative residual norm, which is literally this:

||b - Ax||_2/||b||_2

like. that's the whole vibe. you solved the thing, now you wanna know how good the solve actually was, and this is the number that tells you πŸ”₯


πŸ’œ INPUT πŸ’œ

  • solver β€” the solver, bestie. that's the one you hand over.

🫢 OUTPUT 🫢

  • residual β€” the relative residual norm ||b - Ax||_2/||b||_2 ✨

πŸ‘‘ EXIT STATUS πŸ‘‘

these are the exit values you might get back:

  • 0 β€” the process is normally terminated πŸ₯³ everything ate, no crumbs.
  • unspecified β€” an error occurred 😭 it's giving chaos, not in a fun way.

🌈 SEE ALSO 🌈


fr fr, that's the whole page. no notes, no cap πŸ’…

and that's a wrap, my love πŸŽ€ this was brought to you by the Man Page of 6 Sep 2012, from the Lis Library Functions lineup. stay iconic, stay solving, mwah πŸ«ΆπŸ’–βœ¨

πŸ“¦ where this page comes from