r/cprogramming • u/Nonyabuizness • 12d ago
I built a zero dependencies complex linear algebra library from scratch on C99.
It has zero dependencies and is built entirely from C99 <complex.h> library. Anybody can use my library to write programs utilizing complex vector spaces be it Electrical Engineering, Signal Processing, Quantum Mechanics or even more.
I utilized single pointer flattened arrays for contiguous memory and cache efficiency.
I have included standalone example for every single function I have in my header file under the Examples/ folder.
I also built two pure C applications:
- Mesh Analysis on Bilateral Alternating Current Circuits to find mesh currents and power.
- von Neumann Quantum Entropy Calculator to measure entropy and uncertainty in qubit systems of pure and mixed probabilities.
Check out my https://github.com/CodeLeverEuler/c-complex-linalg
I'm a freshman and this is my first systems/math library in C. Would love feedback on my API design, memory contracts, or numerical stability edge cases!
Thank you
EDIT:
Some are suspicious that this is AI generated. I didn't know that was an issue. I thought I wouldn't make my repository public until it's done.
I can't share the image from my local file here. But if anyone is having second thoughts, I have timestamps on my private Git repository and local files
View all comments
Show parent comment
1
u/Nonyabuizness 12d ago edited 12d ago
I didn't know this was an issue.
I don't make my repositories public unless i feel its presentable online.
If you want proof...I am not allowed to share images here but my header file was created on 27th October and I have commit history on my private repository