diff options
| author | hachem <im@hachem.wtf> | 2026-09-18 12:25:32 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-09-18 12:25:32 +0200 |
| commit | 17598056a69a14e0390a07251d383f413ded9eea (patch) | |
| tree | 79cf23ea99072f065407da3e0b92ee03f8972695 /include/maths/matrix.h | |
| parent | ee14ad272e68d9363202d7f668e0b20302827209 (diff) | |
feat: add matrix, vector, and circuit display + fmt
Diffstat (limited to 'include/maths/matrix.h')
| -rw-r--r-- | include/maths/matrix.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/maths/matrix.h b/include/maths/matrix.h index ff996d6..87bdcee 100644 --- a/include/maths/matrix.h +++ b/include/maths/matrix.h @@ -7,9 +7,9 @@ struct PsiMatrix { - struct PsiComplex* data; - size_t rows; - size_t cols; + struct PsiComplex* data; + size_t rows; + size_t cols; }; struct PsiMatrix psi_new_matrix(size_t rows, size_t cols); @@ -19,7 +19,7 @@ struct PsiMatrix psi_clone_matrix(struct PsiMatrix m); void psi_free_matrix(struct PsiMatrix* m); #define psi_matrix(rows, cols, ...) \ - psi_new_matrix_from((struct PsiComplex[]){ __VA_ARGS__ }, rows, cols) + psi_new_matrix_from((struct PsiComplex[]){ __VA_ARGS__ }, rows, cols) struct PsiComplex psi_get_matrix(struct PsiMatrix m, size_t row, size_t col); void psi_set_matrix(struct PsiMatrix* m, size_t row, size_t col, struct PsiComplex value); |
