aboutsummaryrefslogtreecommitdiff
path: root/include/maths/format.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-09-18 12:25:32 +0200
committerhachem <im@hachem.wtf>2026-09-18 12:25:32 +0200
commit17598056a69a14e0390a07251d383f413ded9eea (patch)
tree79cf23ea99072f065407da3e0b92ee03f8972695 /include/maths/format.h
parentee14ad272e68d9363202d7f668e0b20302827209 (diff)
feat: add matrix, vector, and circuit display + fmt
Diffstat (limited to 'include/maths/format.h')
-rw-r--r--include/maths/format.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/maths/format.h b/include/maths/format.h
index a11e3be..3b746a5 100644
--- a/include/maths/format.h
+++ b/include/maths/format.h
@@ -1,8 +1,14 @@
#pragma once
#include <stddef.h>
+#include <stdio.h>
#include "maths/complex.h"
+#include "maths/matrix.h"
+#include "maths/vector.h"
char* psi_format_amplitude(struct PsiComplex c, char* out, size_t cap);
char* psi_format_probability(double p, char* out, size_t cap);
+
+void psi_print_matrix(struct PsiMatrix m, FILE* out);
+void psi_print_vector(struct PsiVector v, FILE* out);