mpfr

where can I find a Visual studio 2008 project build file for MPFR? or how to create such build file myself?

荒凉一梦 提交于 2019-12-19 11:54:39
问题 I a new C++ user and have only Visual studio 2008 installed. It seems from this link: Brian Gladman's Home Page There is already "Visual Studio 2010 project build files for building MPFR", which is only for VC2010 and my VS cannot open it. mpfr.svn.build.vc10.zip My questions are: 1) where can I find a version for VS2008? 2) or how can I produce it myself since there are already new updates of mpfr? project files for mpfr thank you! ######### Problem Solved Solution: download this pre

GMPY2 doesn't install

做~自己de王妃 提交于 2019-12-11 16:34:36
问题 EDIT: I'm using Win 10 and Ubuntu from the app store I have tried to install gmpy2 by using: apt-get install libgmp-dev apt-get install libmpfr-dev apt-get install libmpc-dev and also downloaded MPIR and compiled it. however using pip install gmpy2 still gives me the error c:\users\gypsyzz\appdata\local\temp\pip-install-l2hlf7q4\gmpy2\src\gmpy.h(104): fatal error C1083: Cannot open include file: 'mpir.h': No such file or directory error: command 'C:\\Program Files (x86)\\Microsoft Visual

Multiprecision Python library that plays well with boost::multiprecision or other options?

我的梦境 提交于 2019-12-11 13:14:07
问题 I am working on a project that revolves around multiprecision "complex" numbers, specifically it's a Mandelbrot Set-based app, but with a twist that requires decent correspondence between the output of a (fast) C++ py extension module (boost, cython, or other...) and the pure python modules that might want to use it. Right now, I'm using boost::multiprecision to wrap the MPFR raw type, and yeah if I just wanted to pass an mpfr_t to python that'd be one thing. However, for this app I need to

Undefined symbols error related to “__mpf_struct” for OS X 10.10.2

让人想犯罪 __ 提交于 2019-12-10 20:40:50
问题 I am trying to compile a program from https://github.com/davidsd/sdpb with gcc-4.9, boost 1.57.0, gmp-6.0.0a, and mpfr-3.1.2 on OS X 10.10.2, but I keep getting errors seemingly related to the gmp and mpfr packages. I know somebody who successfully compiled on 10.9.5. Can anybody suggest a fix? Undefined symbols for architecture x86_64: "operator<<(std::basic_ostream >&, __mpf_struct const*)", referenced from: operator<<(std::basic_ostream<char, std::char_traits<char> >&, Matrix const&) in

How to rebuild the mpfr.svn.build.vc10.zip in my own computer?

混江龙づ霸主 提交于 2019-12-08 03:34:53
问题 This question is about how to install "mpfr" with visual studio 2010 in windows OS. Though I have actually solved the mpfr installation problem by using a pre-compiled mpfr library (see the details here: install mpfr via precompiled mpfr library), I would still prefer to rebuild it myself since I am new and can learn more in C++ and Visual studio through such experience. However, per the guidelines in Brian Gladman's GMP/MPIR/MPFR/MPC page and after downloading the mpfr.svn.build.vc10 and

Platform independent math library

纵饮孤独 提交于 2019-12-06 06:20:49
问题 Is there a publically available library that will produce the exact same results for sin, cos, floor, ceil, exp and log on 32 bit and 64 bit linux, solaris and possibly other platforms? I am considering the following alternatives: a) cephes compiled with gcc -mfpmath=sse and the same optimization levels on each platform ... but its not clear that this would work. b) MPFR but I am worried that this would be too slow. Regarding precision (edited): For this particular application I don't really

Platform independent math library

て烟熏妆下的殇ゞ 提交于 2019-12-04 15:26:36
Is there a publically available library that will produce the exact same results for sin, cos, floor, ceil, exp and log on 32 bit and 64 bit linux, solaris and possibly other platforms? I am considering the following alternatives: a) cephes compiled with gcc -mfpmath=sse and the same optimization levels on each platform ... but its not clear that this would work. b) MPFR but I am worried that this would be too slow. Regarding precision (edited): For this particular application I don't really need something that produces the value that is numerically closest to the exact value. I just need the

boost serialization of mpfr_float

孤街浪徒 提交于 2019-12-02 04:21:54
问题 I would like to serialize a custom class containing an boost::multiprecision::mpfr_float as a member. It says here in the Boost.Serialization documentation that a type T is serializable iff at least one of 5 properties is true, and here at the Multiprecision documentation that the number class has pass-through support which requires the underlying backend to be serializable. For Boost.Multiprecision's mpfr_float type, I know: It is not a primitive type. It is a class type, but it doesn't have

boost serialization of mpfr_float

♀尐吖头ヾ 提交于 2019-12-01 23:24:41
I would like to serialize a custom class containing an boost::multiprecision::mpfr_float as a member. It says here in the Boost.Serialization documentation that a type T is serializable iff at least one of 5 properties is true, and here at the Multiprecision documentation that the number class has pass-through support which requires the underlying backend to be serializable. For Boost.Multiprecision's mpfr_float type, I know: It is not a primitive type. It is a class type, but it doesn't have the serialize function(s) defined. It is not a pointer to a Serializable type. It is not a reference

where can I find a Visual studio 2008 project build file for MPFR? or how to create such build file myself?

落爺英雄遲暮 提交于 2019-12-01 13:52:20
I a new C++ user and have only Visual studio 2008 installed. It seems from this link: Brian Gladman's Home Page There is already "Visual Studio 2010 project build files for building MPFR", which is only for VC2010 and my VS cannot open it. mpfr.svn.build.vc10.zip My questions are: 1) where can I find a version for VS2008? 2) or how can I produce it myself since there are already new updates of mpfr? project files for mpfr thank you! ######### Problem Solved Solution: download this pre-compiled mpfr and config VC complier will be OK! mpfr_mpir_x86_x64_msvc2010.zip It seems the pre-compiled mpfr