fix : update code as per the namespace numerical_methods

This commit is contained in:
Ameya Chawla
2021-10-21 08:20:27 +05:30
committed by GitHub
parent 3b31104a8b
commit 8b974add64

View File

@@ -110,8 +110,8 @@ static void test() {
std::vector<std::complex<double>> r2 = {
{10, 0}, {-2, -2}, {-2, 0}, {-2, 2}}; /// True Answer for test case 2
std::complex<double> *o1 = FastFourierTransform(t1, n1);
std::complex<double> *o2 = FastFourierTransform(t2, n2);
std::complex<double> *o1 = numerical_methods::FastFourierTransform(t1, n1);
std::complex<double> *o2 = numerical_methods::FastFourierTransform(t2, n2);
for (uint8_t i = 0; i < n1; i++) {
assert((r1[i].real() - o1->real() < 0.000000000001) &&