Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Eigen use more than Double precision in its linear algebra Ax=b

I am using Eigen to do some linear algebra. i.e. find x in Ax=b. Where A is (n,n) matrix and x and b are (n,1) size vectors. I would like to know if it is possible to compute them with more than double precision.

like image 601
ashok Avatar asked Jan 25 '26 10:01

ashok


1 Answers

Eigen can work with arbitrary precision arithmetic. There is an MPFR module readily available. Usually, this should not be necessary though (unless your original values already are stored in that high precision). You should first try using a more stable decomposition. Have a look at the available decompositions here. Which one is best, heavily depends on your use case.

like image 77
chtz Avatar answered Jan 27 '26 23:01

chtz