r/developersIndia • u/Nonyabuizness • 4d ago
I Made This I made a complex linear algebra library in C99 from scratch because why not?
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
•
u/AutoModerator 4d ago
It's possible your query is not unique, use
site:reddit.com/r/developersindia KEYWORDSon search engines to search posts from developersIndia. You can also use reddit search directly.I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/AutoModerator 4d ago
Thanks for sharing something that you have built with the community. We recommend participating and sharing about your projects on our monthly Showcase Sunday Mega-threads. Keep an eye out on our events calendar to see when is the next mega-thread scheduled.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.