diff options
| author | hachem <im@hachem.wtf> | 2026-09-02 18:56:09 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-09-02 18:56:09 +0200 |
| commit | 4d404450cd53946e56cc64c66372f0b2d439dbc6 (patch) | |
| tree | b577c728f0541552dff1c5e50ee6b5cd3011a1e0 /src/maths/vector.c | |
| parent | cd69b3c1be9a515906954f48f7f1dbc582f8ad83 (diff) | |
c: port over matrices
Diffstat (limited to 'src/maths/vector.c')
| -rw-r--r-- | src/maths/vector.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/maths/vector.c b/src/maths/vector.c index ea85b8e..b9713ae 100644 --- a/src/maths/vector.c +++ b/src/maths/vector.c @@ -14,7 +14,6 @@ static enum PsiVectorKind flip_kind(enum PsiVectorKind kind) struct PsiVector psi_new_vector(size_t size, enum PsiVectorKind kind) { - // all-zero bits == 0.0 for both components struct PsiComplex *data = calloc(size, sizeof(struct PsiComplex)); assert(data != NULL || size == 0); @@ -87,7 +86,6 @@ struct PsiComplex psi_sum_vector(struct PsiVector v) return sum; } -// ordering mirrors rust's derived PartialOrd: real first, then imaginary static int less_than(struct PsiComplex a, struct PsiComplex b) { if (a.real != b.real) |
