aboutsummaryrefslogtreecommitdiff
path: root/aberth/defs.h
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2019-04-20 19:41:16 +0200
committertomsmeding <tom.smeding@gmail.com>2019-04-20 19:41:16 +0200
commitccade8e6ed96fb48b329d22aaa4c8d0826b3c8d1 (patch)
treeb9389a557869a38d0cdb9de02247abf1446e5db3 /aberth/defs.h
parentdc6f869c48c267e2091d686a66209c4f741d62e4 (diff)
Move some code out of main.cpp
Diffstat (limited to 'aberth/defs.h')
-rw-r--r--aberth/defs.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/aberth/defs.h b/aberth/defs.h
new file mode 100644
index 0000000..40eacf0
--- /dev/null
+++ b/aberth/defs.h
@@ -0,0 +1,13 @@
+#pragma once
+
+#include <complex>
+#include <array>
+
+using namespace std;
+
+
+constexpr const int N = 18;
+
+using Com = complex<double>;
+using Poly = array<int, N + 1>;
+using AApprox = array<Com, N>;