r/cprogramming • • 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:

  1. Mesh Analysis on Bilateral Alternating Current Circuits to find mesh currents and power.
  2. 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

20 Upvotes

15 comments sorted by

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

4

u/CoderStudios 12d ago

It’s the worst issue online right know, every second post sometimes is

hey “I” built x, y, z which seems really cool and advanced but probably doesn’t have a good reason for existing

But as long as yours it’s actually made by a human I applaud you for that 😊

1

u/Nonyabuizness 12d ago

Thanks for the insight. I really didn't know commit histories were that important!

1

u/Key_River7180 12d ago

Why are you not allowed?

I present my OSS very half finished so yeah...

2

u/Nonyabuizness 12d ago

No I meant I am not allowed to share my commit history screenshot in the comments here.

1

u/Key_River7180 12d ago

Oh then share an imgur link

1

u/Nonyabuizness 12d ago

Imgur doesn't work in my country
https://imgbox.com/g/8W2OmGVLfg

I won't lie. I didn't know commit histories mattered so much so I was sloppy with it. Only gave one-liners like changes made. But you can see I worked on this library for nearly a month.