lis_array_matmat_ns(3)
β¨ lis_array_matmat_ns β bestie edition β¨
okay so this is a page from the Lis Library Functions manual, and today's main character is lis_array_matmat_ns(3). it's giving "math but make it rectangular" π
π NAME π
lis_array_matmat_ns β calculate the matrix-matrix product
no cap, that's literally what it does. it multiplies matrices. slay. π¦
πΈ SYNOPSIS πΈ
#include "lis.h"
LIS_INT lis_array_matmat_ns(LIS_INT l, LIS_INT m, LIS_INT n, LIS_SCALAR
a[], LIS_INT lda, LIS_SCALAR b[], LIS_INT ldb, LIS_SCALAR c[], LIS_INT
ldc, LIS_INT op);
like, here's the whole signature, character for character, because we do NOT play with code π«Ά
π DESCRIPTION π
Calculate the matrix-matrix product AB, where matrices A and B are not square.
yes bestie, we're in our rectangular era. the "ns" is right there in the name and it means these matrices said "square is a construct" and went off to live their truth. π
π INPUT π
l,m,nβ The sizes of the matrices. that's it, that's the vibe check on dimensions.aβ The array that stores matrixAof sizel * mldaβ The size of the leading dimension of arrayAbβ The array that stores matrixBof sizem * nldbβ The size of the leading dimension of arrayBcβ The array that stores matrixCof sizel * nldcβ The size of the leading dimension of arrayCopβ the mode selector, the moment of truth, pick your fighter:LIS_INS_VALUEβC = ABLIS_SUB_VALUEβC = C - AB
soLIS_INS_VALUEis the "overwrite it, fresh start, new me" option andLIS_SUB_VALUEis the "subtract the product from what's already there" option. lowkey iconic that you get to choose. π
π OUTPUT π
CβC
yes. the output is C. the array you handed in comes back with the answer in it. very demure, very mindful. β¨
π EXIT STATUS π
The following exit values are returned:
0β The process is normally terminated. we ate, no crumbs. π₯unspecifiedβ An error occurred. not the vibe. π
π§ SEE ALSO π§
and that's the whole page bestie, hope it was helpful, ily, go forth and multiply (matrices) πΈπβ¨
sign-off time: this one's from the Man Page corner of the Lis Library Functions collection, dated 10 Oct 2015, and it goes by lis_array_matmat_ns(3). periodt. π
ππ¦
π¦ 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