adjoint matrix

This commit is contained in:
2026-09-05 18:15:39 +02:00
parent 47913b40ce
commit 837963193f
4 changed files with 41 additions and 6 deletions
+8
View File
@@ -4820,6 +4820,14 @@ NRMat<double> c=a.svdinverse(1e-14);
cout<< "inverses diff = "<<(b-c).norm()<<endl;
cout<< "inverse error = "<<(a*b).norm(1.)<<endl;
cout<< "svdinverse error = "<<(a*c).norm(1.)<<endl;
NRMat<double> aa(a);
double det=determinant_destroy(aa);
NRMat<double> adj=a.absadjoint();
cout <<"det = "<<det<<endl;
cout <<"adjoint error = "<<(a*adj).norm(abs(det))<<endl;
}