summaryrefslogtreecommitdiffhomepage
path: root/util.h
blob: 1d64a80e0a7925ffc92272dc05f118c22b6e9895 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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