lis_matrix_duplicate(3f)

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

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 ✨


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