<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: MPFR C++</title>
	<atom:link href="http://www.holoborodko.com/pavel/?feed=rss2&#038;page_id=12" rel="self" type="application/rss+xml" />
	<link>http://www.holoborodko.com/pavel</link>
	<description>Applied mathematics insights</description>
	<lastBuildDate>Tue, 07 Sep 2010 16:25:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Bassam Shehadeh</title>
		<link>http://www.holoborodko.com/pavel/?page_id=12&#038;cpage=1#comment-4819</link>
		<dc:creator>Bassam Shehadeh</dc:creator>
		<pubDate>Fri, 27 Aug 2010 06:07:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.holoborodko.com/blog/?page_id=12#comment-4819</guid>
		<description>Pavel

Yes, it did work. Now the compiler (gcc) is accepting converting mpreal to int.

The package is very nice

Many thanks</description>
		<content:encoded><![CDATA[<p>Pavel</p>
<p>Yes, it did work. Now the compiler (gcc) is accepting converting mpreal to int.</p>
<p>The package is very nice</p>
<p>Many thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pavel Holoborodko</title>
		<link>http://www.holoborodko.com/pavel/?page_id=12&#038;cpage=1#comment-4818</link>
		<dc:creator>Pavel Holoborodko</dc:creator>
		<pubDate>Fri, 27 Aug 2010 02:17:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.holoborodko.com/blog/?page_id=12#comment-4818</guid>
		<description>Hello

I&#039;ve added type conversion operator for &lt;code&gt;mpreal&lt;/code&gt; to &lt;code&gt;int&lt;/code&gt; transformation. Please download new version and try it - check  if it solves your problem. 
Something like this should work fine
[cpp]
mpreal x = &quot;1.5&quot;;
int y = x;
[/cpp]</description>
		<content:encoded><![CDATA[<p>Hello</p>
<p>I&#8217;ve added type conversion operator for <code>mpreal</code> to <code>int</code> transformation. Please download new version and try it &#8211; check  if it solves your problem.<br />
Something like this should work fine</p>
<pre class="brush: cpp;">
mpreal x = &quot;1.5&quot;;
int y = x;
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bassam Shehadeh</title>
		<link>http://www.holoborodko.com/pavel/?page_id=12&#038;cpage=1#comment-4817</link>
		<dc:creator>Bassam Shehadeh</dc:creator>
		<pubDate>Thu, 26 Aug 2010 06:03:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.holoborodko.com/blog/?page_id=12#comment-4817</guid>
		<description>Hello

I&#039;m trying to use mfprc++ to build a high precision code do a massive computation. I settled everything had the mpfrc++ test work successfully. When try to compile my code I bumbed into this error:
error: conversion from mpfr::mpreal to int is ambiguous

this happen because I&#039;m trying to promote an integer to mpreal. Is there any function does this promotion? I&#039;ll be very thankful for any help

Thank you!
Bassam</description>
		<content:encoded><![CDATA[<p>Hello</p>
<p>I&#8217;m trying to use mfprc++ to build a high precision code do a massive computation. I settled everything had the mpfrc++ test work successfully. When try to compile my code I bumbed into this error:<br />
error: conversion from mpfr::mpreal to int is ambiguous</p>
<p>this happen because I&#8217;m trying to promote an integer to mpreal. Is there any function does this promotion? I&#8217;ll be very thankful for any help</p>
<p>Thank you!<br />
Bassam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pavel Holoborodko</title>
		<link>http://www.holoborodko.com/pavel/?page_id=12&#038;cpage=1#comment-4809</link>
		<dc:creator>Pavel Holoborodko</dc:creator>
		<pubDate>Wed, 21 Jul 2010 02:22:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.holoborodko.com/blog/?page_id=12#comment-4809</guid>
		<description>As for July 15, 2010, Eigen developers have fixed these bug.</description>
		<content:encoded><![CDATA[<p>As for July 15, 2010, Eigen developers have fixed these bug.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pavel Holoborodko</title>
		<link>http://www.holoborodko.com/pavel/?page_id=12&#038;cpage=1#comment-4743</link>
		<dc:creator>Pavel Holoborodko</dc:creator>
		<pubDate>Thu, 15 Apr 2010 13:04:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.holoborodko.com/blog/?page_id=12#comment-4743</guid>
		<description>Hi!

To convert double values to mpreal you can use two ways:

1. mpreal d = 2.11;  
2. mpreal d = &quot;2.11&quot;; // preferable, since there is no conversion to double

Second way is preferable, since there is no transitive conversion to double. Also numbers way beyond double precision can be assigned, like

mpreal d = &quot;2.1234567891234567891234567&quot;;

Generally you  do not need to invoke  mpreal::set_double_bits(). It is needed only for specific purposes (read first comment for more information).

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>To convert double values to mpreal you can use two ways:</p>
<p>1. mpreal d = 2.11;<br />
2. mpreal d = &#8220;2.11&#8243;; // preferable, since there is no conversion to double</p>
<p>Second way is preferable, since there is no transitive conversion to double. Also numbers way beyond double precision can be assigned, like</p>
<p>mpreal d = &#8220;2.1234567891234567891234567&#8243;;</p>
<p>Generally you  do not need to invoke  mpreal::set_double_bits(). It is needed only for specific purposes (read first comment for more information).</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jogi</title>
		<link>http://www.holoborodko.com/pavel/?page_id=12&#038;cpage=1#comment-4742</link>
		<dc:creator>Jogi</dc:creator>
		<pubDate>Mon, 12 Apr 2010 09:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.holoborodko.com/blog/?page_id=12#comment-4742</guid>
		<description>Hi Pavel,
                 Really nice piece of work.

I have a couple of questions upon usage howerver. I am trying to assign a double value to an mp real and I get an exception.

mpreal::set_default_prec(128);
mpreal::set_double_bits(32); // I am assuming this is decimal places -- please advice

mpreal d = 2.11 ;

terminate called after throwing an instance of &#039;mpfr::conversion_overflow&#039;

Is this correct? I would assume that I could assign a double to an mpreal.</description>
		<content:encoded><![CDATA[<p>Hi Pavel,<br />
                 Really nice piece of work.</p>
<p>I have a couple of questions upon usage howerver. I am trying to assign a double value to an mp real and I get an exception.</p>
<p>mpreal::set_default_prec(128);<br />
mpreal::set_double_bits(32); // I am assuming this is decimal places &#8212; please advice</p>
<p>mpreal d = 2.11 ;</p>
<p>terminate called after throwing an instance of &#8216;mpfr::conversion_overflow&#8217;</p>
<p>Is this correct? I would assume that I could assign a double to an mpreal.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry Gagelman</title>
		<link>http://www.holoborodko.com/pavel/?page_id=12&#038;cpage=1#comment-4734</link>
		<dc:creator>Jerry Gagelman</dc:creator>
		<pubDate>Mon, 08 Feb 2010 10:50:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.holoborodko.com/blog/?page_id=12#comment-4734</guid>
		<description>First I&#039;d like to thank Pavel for the valuable wrapper he has written. It has saved many people lots of work! I&#039;d also like to call everyone&#039;s attention to another &quot;templated&quot; linear algebra library that I have been using with the mpreal type and with which I have been happy --- with both MPFRC++ and the library:

http://math.nist.gov/tnt/index.html

It&#039;s like a lighter weight version of Eigen, one more devoted to core linear algebra. Everything is defined in header files (hence no libraries to build) and  it uses doxygen documentation. Note: I am using version 3.0.12 from the download page.

Jerry</description>
		<content:encoded><![CDATA[<p>First I&#8217;d like to thank Pavel for the valuable wrapper he has written. It has saved many people lots of work! I&#8217;d also like to call everyone&#8217;s attention to another &#8220;templated&#8221; linear algebra library that I have been using with the mpreal type and with which I have been happy &#8212; with both MPFRC++ and the library:</p>
<p><a href="http://math.nist.gov/tnt/index.html" rel="nofollow">http://math.nist.gov/tnt/index.html</a></p>
<p>It&#8217;s like a lighter weight version of Eigen, one more devoted to core linear algebra. Everything is defined in header files (hence no libraries to build) and  it uses doxygen documentation. Note: I am using version 3.0.12 from the download page.</p>
<p>Jerry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nakata Maho</title>
		<link>http://www.holoborodko.com/pavel/?page_id=12&#038;cpage=1#comment-4722</link>
		<dc:creator>Nakata Maho</dc:creator>
		<pubDate>Wed, 23 Dec 2009 07:18:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.holoborodko.com/blog/?page_id=12#comment-4722</guid>
		<description>Hi Pavel, thanks for your comment!

I have already been using GMP via gmpxx.h. Above mentioned complex C++ wrapper is
based on GMP. Problem here is not so many functions, as you suggest.
Thanks for MPIR. I didn&#039;t know about it. MPACK infrastructure is designed to be easy to
port to a multiple precision library. What I need are four types;  &quot;REAL&quot;, &quot;COMPLEX&quot;, &quot;INTEGER&quot; and &quot;LOGICAL&quot;. If someone make a wrapper to MPFR, I can port to MPFR immediately.
 I&#039;d like to use MPFR for better calculation evaluation.

Anyway please take your time. Hope I can do some contribution to you.

Best regards,
 Nakata Maho</description>
		<content:encoded><![CDATA[<p>Hi Pavel, thanks for your comment!</p>
<p>I have already been using GMP via gmpxx.h. Above mentioned complex C++ wrapper is<br />
based on GMP. Problem here is not so many functions, as you suggest.<br />
Thanks for MPIR. I didn&#8217;t know about it. MPACK infrastructure is designed to be easy to<br />
port to a multiple precision library. What I need are four types;  &#8220;REAL&#8221;, &#8220;COMPLEX&#8221;, &#8220;INTEGER&#8221; and &#8220;LOGICAL&#8221;. If someone make a wrapper to MPFR, I can port to MPFR immediately.<br />
 I&#8217;d like to use MPFR for better calculation evaluation.</p>
<p>Anyway please take your time. Hope I can do some contribution to you.</p>
<p>Best regards,<br />
 Nakata Maho</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pavel Holoborodko</title>
		<link>http://www.holoborodko.com/pavel/?page_id=12&#038;cpage=1#comment-4721</link>
		<dc:creator>Pavel Holoborodko</dc:creator>
		<pubDate>Wed, 23 Dec 2009 05:00:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.holoborodko.com/blog/?page_id=12#comment-4721</guid>
		<description>Hi Maho!

Thank you for your comment!
I really like your ideas of MPACK and high precision optimization solvers. 
I’ve checked your web site and I think you are doing very impressive stuff.

MPFR library offers very nice features over GMP, like correct rounding, high level functions, etc.  I think it would suit MPACK needs much better than bare GMP. 

Besides there are some problems with GMP usage on Windows platform: &lt;a href=&quot;http://www.gladman.me.uk/&quot; rel=&quot;nofollow&quot;&gt;http://www.gladman.me.uk/&lt;/a&gt;. So, if you want MPACK to be used on Windows it is better to consider MPIR: &lt;a href=&quot;http://www.mpir.org/&quot; rel=&quot;nofollow&quot;&gt;http://www.mpir.org/&lt;/a&gt;. MPFR can use it instead of GMP.

C++ interface for GMP is already exist and distributed along with GMP source code (gmpxx.h). I didn’t check it personally, but maybe it worth considering before developing new one. 

I have plans to make C++ interface for MPC but I cannot promise exact dates, sorry.

I would be honored if you would use my library MPFR C++ for MPACK. I am open for any questions and ready to provide you assistance on that matter.

Thank you!</description>
		<content:encoded><![CDATA[<p>Hi Maho!</p>
<p>Thank you for your comment!<br />
I really like your ideas of MPACK and high precision optimization solvers.<br />
I’ve checked your web site and I think you are doing very impressive stuff.</p>
<p>MPFR library offers very nice features over GMP, like correct rounding, high level functions, etc.  I think it would suit MPACK needs much better than bare GMP. </p>
<p>Besides there are some problems with GMP usage on Windows platform: <a href="http://www.gladman.me.uk/" rel="nofollow">http://www.gladman.me.uk/</a>. So, if you want MPACK to be used on Windows it is better to consider MPIR: <a href="http://www.mpir.org/" rel="nofollow">http://www.mpir.org/</a>. MPFR can use it instead of GMP.</p>
<p>C++ interface for GMP is already exist and distributed along with GMP source code (gmpxx.h). I didn’t check it personally, but maybe it worth considering before developing new one. </p>
<p>I have plans to make C++ interface for MPC but I cannot promise exact dates, sorry.</p>
<p>I would be honored if you would use my library MPFR C++ for MPACK. I am open for any questions and ready to provide you assistance on that matter.</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nakata Maho</title>
		<link>http://www.holoborodko.com/pavel/?page_id=12&#038;cpage=1#comment-4715</link>
		<dc:creator>Nakata Maho</dc:creator>
		<pubDate>Tue, 15 Dec 2009 02:38:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.holoborodko.com/blog/?page_id=12#comment-4715</guid>
		<description>Hello, thanks for your nice software!

I&#039;d like to use it for MPACK (MBLAS/MLAPACK). 
http://mplapack.sourceforge.net/
How about wrapping MPC as well?

I prepared general (not very well one) for GMP.
http://mplapack.cvs.sourceforge.net/viewvc/*checkout*/mplapack/mpack/include/mpc_class.h?revision=1.5

any comment is really appreciated.

Thanks!</description>
		<content:encoded><![CDATA[<p>Hello, thanks for your nice software!</p>
<p>I&#8217;d like to use it for MPACK (MBLAS/MLAPACK).<br />
<a href="http://mplapack.sourceforge.net/" rel="nofollow">http://mplapack.sourceforge.net/</a><br />
How about wrapping MPC as well?</p>
<p>I prepared general (not very well one) for GMP.<br />
<a href="http://mplapack.cvs.sourceforge.net/viewvc/" rel="nofollow">http://mplapack.cvs.sourceforge.net/viewvc/</a>*checkout*/mplapack/mpack/include/mpc_class.h?revision=1.5</p>
<p>any comment is really appreciated.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
