From 0b1f9545c77d3c21d43f1f0080fbe0bae95c3413 Mon Sep 17 00:00:00 2001 From: Jiri Pittner Date: Fri, 23 Oct 2026 14:45:49 +0200 Subject: [PATCH] made compilable with gcc16 --- t.cc | 33 +++++++++++++++++++++++++++++---- vecmat3.h | 3 +++ 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/t.cc b/t.cc index 169a746..de9d2fd 100644 --- a/t.cc +++ b/t.cc @@ -2461,7 +2461,7 @@ Quaternion q({1,2,3,4}); cout< p({1,4,2,3}); cout < c({NRVec_from1({1,2}),NRVec_from1({3,4,5})}); +CyclePerm c({NRVec_from1({1,2}),NRVec_from1({3,4,5})}); cout < pp({1,2,3,4,5}); cout< m(&mm[0][0],3,3); cout < r(rr); cout< a(aa); NRVec b(n); cout <>n; @@ -4830,5 +4830,30 @@ cout <<"adjoint error = "<<(a*adj).norm(abs(det))<>n; +NRVec x(n); +x.randomize(1.); +testproblem problem; +BFGS_hyperparameters param; +param.my_maxstep=100; +param.my_f_thr=1e-6; +param.my_x_thr=1e-3; +param.my_g_thr=1e-3; +cout << "initial " < o; +o.minimize(&problem,x,¶m); +cout << "optimized " < #include #include +#ifndef NO_NUMERIC_LIMITS +#include +#endif namespace LA_Vecmat3 {