summaryrefslogtreecommitdiffhomepage
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/util.h b/util.h
new file mode 100644
index 0000000..1d64a80
--- /dev/null
+++ b/util.h
@@ -0,0 +1,15 @@
+#pragma once
+
+#include <complex>
+#include <vector>
+
+namespace RIT {
+
+int bitreverse(int i, int size);
+
+bool is_power_of_two(unsigned int n);
+
+std::vector<double> magnitudes(const std::vector<std::complex<double>>& v);
+
+} // namespace RIT
+