aboutsummaryrefslogtreecommitdiff
path: root/experiments
diff options
context:
space:
mode:
authory-jan137 <yousefjan24000@gmail.com>2026-03-15 14:08:51 +0300
committery-jan137 <yousefjan24000@gmail.com>2026-03-15 14:08:51 +0300
commit606ad99e8363bd520506ea2e88b831911fe03c18 (patch)
tree47a422beed4a53005d4dfdc7c9dab5aa6325274d /experiments
parentbe01607041d2ded41e5bf39a0a8e17ffb9bcc296 (diff)
Add QR iteration algos
Diffstat (limited to 'experiments')
-rw-r--r--experiments/hilbert_qr.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/experiments/hilbert_qr.cpp b/experiments/hilbert_qr.cpp
index 218b35c..f30d2ac 100644
--- a/experiments/hilbert_qr.cpp
+++ b/experiments/hilbert_qr.cpp
@@ -66,7 +66,6 @@ double orthogonality_error(const QRResult& qr) {
using Clock = std::chrono::high_resolution_clock;
using Seconds = std::chrono::duration<double>;
-// Run fn() `trials` times, return minimum elapsed seconds.
template<typename Fn>
double min_time(Fn fn, int trials = 5) {
double best = 1e18;
@@ -116,7 +115,7 @@ void print_row(const std::string& method, std::optional<Result> r) {
int main() {
std::cout << std::string(70, '*') << "\n";
- std::cout << " Hilbert QR Experiment — comparing GS variants and Householder\n";
+ std::cout << " Hilbert QR Experiment: comparing GS variants and Householder\n";
std::cout << std::string(70, '*') << "\n\n";
std::cout <<
"H[i][j] = 1/(i+j+1). Condition number grows ~exponentially with n.\n"