Registered Member
|
Hello. I'm intending to use Eigen for linear algebra solving in relation to n degree Bezier curves. The equation is of the form of AL=B where A is a totally scalar (i.e. of float/decimal data type) square (n+1)*(n+1) matrix, and L and B are vectors containing coordinates of points as elements. The equation could be split into ALx=Bx, ALy=By etc for the x part, y part etc of the coordinates, but I'd like to handle it at one go if possible. Is it possible to do linear algebra using Eigen on such custom classes, and if so what concepts should the class representing the points model for that? I'd also like to know whether other arbitrary precision types like GMPQ, MPFR etc can be used with Eigen (for my A matrix).
The documentation at http://eigen.tuxfamily.org/dox/TutorialMatrixClass.html points to http://eigen.tuxfamily.org/dox/TopicScalarTypes.html for information on which data types are supported and how to extend Eigen to additional datatypes. However the latter page is still a to-do so I couldn't get my required info from there. Any help is appreciated. Thanks! |
Registered Member
|
If L and B are (n+1) x p dense matrices where each row contains the coordinates of one point, then you have nothing to do.
All decomposition classes in Eigen work for multiple right-hand side systems. Now, if L and B are (n+1) x p one-dimensional vectors, you can use the Map class.
In the unsupported module , there is a backend for MPFR C++ http://www.holoborodko.com/pavel/mpfr/ You can check it to see if it fits your needs. Hope it helps ! |
Registered Member
|
Hello and thanks for replying. My further questions below:
Are you saying that I can make L and B contain the coordinates of the form:
... and Eigen will automatically solve for the x and y coordinates separately?
You mean (n+1) x 1, right? Thanks! |
Registered Member
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]