An alternative would me to map the problem into double precision. For instance, if you need quad precision for some length n vector, you could use a length 2n double precision vector. Then the 1:n section of the vector would contain the first decimal places and the n+1:2n section of the vector could contain the last decimal places (or some similar solution).
-Grey On Thu, Sep 11, 2014 at 9:51 AM, Steven G. Johnson <[email protected]> wrote: > > On Sep 11, 2014, at 5:27 AM, Shiro <[email protected]> wrote: > > I am just a loss how to give/take parameters with arbitrary-precision > > arithmetic instead of "double" type on the C++ interface. > > The underlying code in NLopt (which is written in C) only supports double > precision. To get arbitrary precision support, you would need to pull the > code for the algorithm that you want out of NLopt, and then port it to > arbitrary precision. > > > _______________________________________________ > NLopt-discuss mailing list > [email protected] > http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss > -- Grey Gordon Indiana University https://sites.google.com/site/greygordon/
_______________________________________________ NLopt-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss
