From 3c71e1773a54af81f5e0ccc7dab500bfbfb9a38c Mon Sep 17 00:00:00 2001 From: Wai-Shing Luk Date: Sat, 9 Sep 2023 15:29:48 +0800 Subject: [PATCH] make page build work; rename lowpass_oracle_ai.cpp --- docs/authors.md | 5 +---- docs/changelog.md | 5 +---- docs/readme.md | 5 +---- lowpass_oracle.cpp => lowpass_oracle_ai.cpp | 3 +-- 4 files changed, 4 insertions(+), 14 deletions(-) rename lowpass_oracle.cpp => lowpass_oracle_ai.cpp (98%) diff --git a/docs/authors.md b/docs/authors.md index ced47d0..3234d6e 120000 --- a/docs/authors.md +++ b/docs/authors.md @@ -1,4 +1 @@ -```{include} ../AUTHORS.md -:relative-docs: docs/ -:relative-images: -``` +../AUTHORS.md \ No newline at end of file diff --git a/docs/changelog.md b/docs/changelog.md index 6e2f0fb..04c99a5 120000 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,4 +1 @@ -```{include} ../CHANGELOG.md -:relative-docs: docs/ -:relative-images: -``` +../CHANGELOG.md \ No newline at end of file diff --git a/docs/readme.md b/docs/readme.md index 2cb706b..32d46ee 120000 --- a/docs/readme.md +++ b/docs/readme.md @@ -1,4 +1 @@ -```{include} ../README.md -:relative-docs: docs/ -:relative-images: -``` +../README.md \ No newline at end of file diff --git a/lowpass_oracle.cpp b/lowpass_oracle_ai.cpp similarity index 98% rename from lowpass_oracle.cpp rename to lowpass_oracle_ai.cpp index 46de8bf..f683da7 100644 --- a/lowpass_oracle.cpp +++ b/lowpass_oracle_ai.cpp @@ -28,7 +28,6 @@ class LowpassOracle { this->Lpsq = Lpsq; this->Upsq = Upsq; this->more_alt = true; - this->i_A = 0; this->count = 0; } @@ -38,7 +37,7 @@ class LowpassOracle { // case 2, passband constraints int N = A.size(); - for (int k = 0; k < nwpass; k++) { + for (int k = 0; k < this->nwpass; k++) { double v = 0; for (int j = 0; j < n; j++) { v += A[k][j] * x[j];