lis_array_sum(3)
β¨ lis_array_sum(3) β¨
okay bestie, welcome to the Lis Library Functions corner of the manual β this one's called lis_array_sum and it's literally the simplest lil glow-up in the whole library π
πΈ NAME πΈ
lis_array_sum β calculate the sum of the elements of the vector
like... all of them. every single one. added together. that's it, that's the function π«Ά
π SYNOPSIS π
#include "lis.h"
LIS_INT lis_array_sum(LIS_INT n, LIS_SCALAR x[], LIS_SCALAR *value);
π DESCRIPTION π
Calculate the sum of the elements of vector x. she just... adds. and honestly? iconic. no notes π
Here's the one thing she needs from you before she starts:
nβ The size of the vector
π INPUT π
xβ The array that stores the vector
π¦ OUTPUT π¦
valueβ The sum of the vector elements
so you hand her a vector, she hands you back one singular number that is everybody summed up. main character energy fr fr β¨
π EXIT STATUS π
The following exit values are returned:
0β The process is normally terminated πunspecifiedβ An error occurred π
no cap, if you get unspecified something went sideways and you're on your own figuring out what. not me being vague, that's genuinely what the page says π
β SEE ALSO β
that's the whole page, you ate it, go forth and sum some vectors π§
this lil masterpiece lives in the Lis Library Functions manual, dated 3 Dec 2014, and yes, the footer really does just say lis_array_sum(3) again like a signature sign-off π mwah, bye bestie! πΈ
π¦ 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