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.h | |
| parent | cd69b3c1be9a515906954f48f7f1dbc582f8ad83 (diff) | |
c: port over matrices
Diffstat (limited to 'src/maths/vector.h')
| -rw-r--r-- | src/maths/vector.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/maths/vector.h b/src/maths/vector.h index 5c209bb..d452ef1 100644 --- a/src/maths/vector.h +++ b/src/maths/vector.h @@ -10,7 +10,6 @@ enum PsiVectorKind PSI_COLUMN_VECTOR, }; -// owns a heap allocation in `data`; release it with psi_free_vector struct PsiVector { struct PsiComplex *data; @@ -23,7 +22,6 @@ struct PsiVector psi_new_vector_from(const struct PsiComplex *data, size_t size, struct PsiVector psi_clone_vector(struct PsiVector v); void psi_free_vector(struct PsiVector *v); -// convenience builders, mirroring the row_vector!/column_vector! macros #define psi_row_vector(...) \ psi_new_vector_from((struct PsiComplex[]){ __VA_ARGS__ }, \ sizeof((struct PsiComplex[]){ __VA_ARGS__ }) / sizeof(struct PsiComplex), \ |
