lis_solve_kernel(3)

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

πŸ’– lis_solve_kernel(3) πŸ’–

okay bestie, come SIT. this is a page from the Lis Library Functions manual, and it's about lis_solve_kernel β€” the girl who solves your linear equation for you with a preconditioner you already set up. she's lowkey the moment, fr fr. 🌸


✨ NAME ✨

lis_solve_kernel β€” solve the linear equation with the predefined preconditioner 🫢


✨ SYNOPSIS ✨

#include "lis.h"

LIS_INT lis_solve_kernel(LIS_SOLVER solver);

like, that's it. one function, one arg. she's serving minimalist. πŸ’…


✨ DESCRIPTION ✨

so the whole vibe here: she solves the linear equation using the solver you picked and the preconditioner that was already defined ahead of time. no extra setup at call time, no drama, she just goes. πŸ”₯


✨ INPUT ✨

here's everything going in, bestie, don't lose track:

  • A β€” the coefficient matrix πŸ‘‘
  • b β€” the right hand side vector 🌈
  • x β€” the initial vector ✨
  • solver β€” the solver πŸ’œ
  • precon β€” the preconditioner πŸŽ€

✨ OUTPUT ✨

and here's what comes back out:

  • x β€” the solution πŸ¦‹
  • solver β€” the number of iterations, the execution time, etc. ⭐
not me casually returning the iteration count AND the timing, she's so considerate 😭

✨ EXIT STATUS ✨

these are the exit values, keep them in your notes:

  • 0 β€” the process is normally terminated πŸ’–
  • unspecified β€” an error occurred πŸ’€
yes, "unspecified" is literally the value. we don't know what happened, and honestly? neither does she. πŸ™ˆ

✨ NOTE ✨

want an example? go peek at lis-($VERSION)/src/esolver/lis esolver ii.c, which computes the smallest eigenvalue by calling lis_solve_kernel multiple times. that's the girlboss reference implementation, iykyk. πŸ‘‘


✨ SEE ALSO ✨


and that's the whole page, bestie β€” no cap, every flag and every line stayed exactly where it was supposed to be. mwah. πŸ’…

source & version: Lis Library Functions Β· date: 6 Sep 2012 πŸŽ€ bye ily 🫢

πŸ“¦ where this page comes from