lis_matrix_duplicate(3)
π lis_matrix_duplicate β aka "duplicate the matrix" β¨
okay bestie, welcome to the lis_matrix_duplicate(3) page from the Lis Library Functions crew π«Ά this is the one where you clone a matrix's whole setup without dragging all its little numbers along. sit down, grab a strawberry π, let's get into it.
π SYNOPSIS π
#include "lis.h"
LIS_INT lis_matrix_duplicate(MATRIX *Ain, LIS_MATRIX *Aout);
that's the whole vibe. two args, one dream π
π DESCRIPTION π
so what this does is: it creates matrix Aout which has the same information as Ain. like, same structure, same everything, no cap. it's giving twin energy, it's giving "she's literally me" πβ¨
πΈ INPUT πΈ
Ainβ the source matrix. the original. the blueprint. the main character π
π¦ OUTPUT π¦
Aoutβ the destination matrix. the freshly-born clone, standing there with the same info and a whole lot of potential π
β EXIT STATUS β
here's what you get back, queen:
0β the process is normally terminated. slay, we ate, no notes π₯unspecifiedβ an error occurred. not the vibe. crying. π
β οΈ NOTE β οΈ
okay this part is SO important, listen up, don't skip it, i'm being fr fr:
lis_matrix_duplicate does not copy the elements of the matrix β it only allocates the memory. it's giving empty-but-shaped, it's giving structure with no substance π
so if you actually want the values too? you gotta call lis_matrix_copy after this function. do both, in that order, or you'll be sitting there wondering why your numbers ghosted you π
π SEE ALSO π
lis(3)β the mothership, the origin story, the group chat admin π- http://www.ssisc.org/lis/ β go browse, bestie, it's iconic β¨
kisses from the Lis Library Functions era π this page was written on 6 Sep 2012, and yeah, she's still serving after all this time β Man Page energy, lowkey timeless, highkey legendary. 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