lis_matrix_duplicate(3f)
lis_matrix_duplicate π
okay so bestie, welcome to the Lis Library Functions corner of the man pages, aka lis_matrix_duplicate(3f) β the function that's literally just "make me a twin" but for matrices. no cap. π¦
β¨ NAME β¨
lis_matrix_duplicate β duplicate the matrix π«Ά
β¨ SYNOPSIS β¨
subroutine lis_matrix_duplicate(MATRIX *Ain, LIS_MATRIX *Aout,
LIS_INTEGER ierr);
like. that's the whole vibe. three arguments, in and out, plus the little ierr bestie that tells you how it went. π
β¨ DESCRIPTION β¨
Create matrix Aout which has the same information as Ain. π
that's it, that's the function. you hand it a matrix, it hands you back a matrix that's giving the exact same information. matching energy fr fr. β¨
β¨ INPUT β¨
Ainβ The source matrix. this is the one you're duplicating, the original, the main character π
β¨ OUTPUT β¨
Aoutβ The destination matrix. this is where your fresh little duplicate lands πΈ
β¨ NOTE β¨
β οΈ bestie, read this part, i'm so serious β οΈ
The function lis_matrix_duplicate does not copy the elements of the matrix, but allocates only the memory. π
so likeβ¦ you get the shape of a duplicate, the allocated space, the whole setup β but the actual values? not there yet. empty. a beautiful empty vessel. π«β¨
To copy the values as well, the function lis_matrix_copy must be called after this function. so the order is: lis_matrix_duplicate first, then lis_matrix_copy. do it out of order and it's giving nothing, i fear π
β¨ SEE ALSO β¨
lis(3)π- http://www.ssisc.org/lis/ π
mwah π that's the whole page. go forth and duplicate responsibly.
this lil masterpiece came out of the Lis Library Functions man pages, dated 6 Sep 2012, and yes she's still iconic.** π
π¦ 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