lis_matrix_axpyz(3)

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

✨ lis_matrix_axpyz β€” calculate the sum of the matrices ✨

okay bestie, welcome to lis_matrix_axpyz(3), one of the lil gems from the Lis Library Functions manual πŸ’– she does one thing and she does it gorgeously: adds matrices together. that's it. that's the whole vibe. and honestly? obsessed. πŸŽ€


🌸 SYNOPSIS 🌸

#include "lis.h"

LIS_INT lis_matrix_axpyz(LIS_SCALAR alpha, LIS_MATRIX A, LIS_MATRIX B,
LIS_MATRIX C);

like, look at that signature. so clean. so structured. the way she takes a scalar and three matrices and just delivers 🫢


πŸ’… DESCRIPTION πŸ’…

Calculate the sum of the matrices C = alpha * A + B.

that's literally the whole thing, and it's giving math major main character energy fr fr. you hand her a scalar, you hand her two matrices, and she hands you back a third matrix that's the sum. no cap ✨


🌈 INPUT 🌈

  • alpha β€” the scalar value πŸ“ (yes bestie, she gets multiplied across everything, that's her job)
  • A, B β€” the matrices πŸ’œ the two cuties going into the blender

πŸ‘‘ OUTPUT πŸ‘‘

  • C β€” alpha * A + B πŸ’« the glow-up result, freshly computed and ready for you

πŸ’€ EXIT STATUS πŸ’€

the following exit values are returned, and yes you should lowkey check them:

  • 0 β€” the process is normally terminated 🌸 everything slayed, nothing broke, we love to see it
  • unspecified β€” an error occurred 😭 something went sideways, and she's not gonna tell you exactly what, which is... a choice

πŸŽ€ NOTE πŸŽ€

Matrices A, B and C must be in the DNS format. like, this is not optional, bestie. not a suggestion. not a vibe. if they're not in DNS format, do not pass go, do not collect your sum. πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹


and that's the whole page, bestie!! this little icon was documented on 30 Dec 2014 as part of the Lis Library Functions man page set, and the source lives at http://www.ssisc.org/lis/. periodt. go forth and add those matrices πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from