search for: mpfr

Displaying 20 results from an estimated 185 matches for "mpfr".

Did you mean: mfr
2018 Oct 26
1
Rmpfr: build vector sequentially -- c(.) not working
I've been asked in private, but am answering in public so others can comment / or find this answer in the future after a web search. This is about the package 'Rmpfr' (R interface to MPFR, the GNU C library for arbitrary precise numbers). > How can you build a vector of mpfr numbers sequentially? > Typically I would do something like the following (and try to > replace the for loop with some sort of apply construct) > > vec <- NULL >...
2018 Feb 02
0
mpfr and gsl problem on SLES11 SP4
Dear Team, Maybe somebody already tried to install mpfr and gsl packages for R on SLES. Exactly I try to install Rmpfr_0.6-1.tar.gz and gsl_1.9-10.3.tar.gz on SLES11 SP4. These are the available packages from official SLES SDK media: rtest:/home/ruser # rpm -qa | grep -i gsl gsl-devel-1.11-1.30 gsl-1.11-1.30 rtest:/home/ruser # As I understand...
2010 Oct 16
1
Rmpfr question
...NG May/June 2010; http://perso.ens-lyon.fr/philippe.theveny/cise.pdf): d = 173746a + 94228b ? 78487c where: a = sin(1022), b = log(17.1), and c = exp(0.42). Ghazi et al. report: d = ?1.341818958e?12 whit IEEE-754 quadruple precision (113 bits). I have tried to reproduce such result using the Rmpfr library using: a <- mpfr(sin(10^22), 230) b <- mpfr(log(171/10), 230) c <- mpfr(exp(42/100), 230) (d <- 173746*a + 94228*b - 78487*c) 1 'mpfr' number of precision 230 bits [1] 2.9904079212883516447618603706359863281250000000000000000000000000000000e-11 Which does not corr...
2011 Jun 28
1
(no subject)
Hi, I am trying to write code in C for an R package. I need high precision in the form of the mpfr and gmp packages. I have installed mpfr and gmp under the instructions of the following website http://pauillac.inria.fr/cdrom_a_graver/prog/pc/mpfr/eng.htm and I get no errors. I have put the header files (mpfr.h and gmp.h) in the folder C:\Program Files\R\R-2.13.0\include; allowing my c code to i...
2016 Sep 10
3
c(<Matrix>, <Matrix>) / help(dotsMethods) etc
...;s lowlevel c() already decided to use list(): [[1]] [1] NA [[2]] [,1] [,2] [,3] [1,] 1 . . [2,] . 1 . [3,] . . 1 > ---------------------------------------------- BTW, I (and the package users) suffer from exactly the same problem with the "MPFR" (multi precision numbers) provided by my package Rmpfr: > require(Rmpfr) > c(mpfr(3,100), 1/mpfr(7, 80)) ## works fine 2 'mpfr' numbers of precision 80 .. 100 bits [1] 3 0.14285714285714285714285708 > c(pi, 1/mpfr(7, 80)) ## "fails" ev...
2013 Sep 20
1
Rmpfr question
...veryone, R beginner, I am confronted with the need to use Rmpf. In my first scripts I made use of X=read.table(file.choose(), header=FALSE, sep=",",dec=".") X=as.matrix(X) to load into a matrix data from file before matrix use. How can I do to load the same data in a "mpfrMatrix". Is it possible to use with "mpfrMatrix" the same as operations M1%*%M2 scale(M1,TRUE,FALSE) Sorry but I'm a newbe Thanks in advance Michel [[alternative HTML version deleted]]
2019 Jun 03
2
Converting non-32-bit integers from python to R to use bit64: reticulate
Thank you Martin for giving to know and developing 'Rmpfr' library for unlimited size integers (GNU C GMP) and arbitrary precision floats (GNU C MPFR): https://cran.r-project.org/package=Rmpfr My question is: In the long term (For R3.7.0 or R3.8.0): Does it have sense that CMP substitutes INTSXP, and MPFR substitutes REALSXP code? With this we woul...
2012 Jun 22
2
[LLVMdev] Compile error of latest Dragonegg on Ubuntu with GCC 4.5
...re with error message: In file included from > /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/plugin/include/rtl.h:28:0, > from /home/xxx/llvm/dragonegg/src/Convert.cpp:63: > /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/plugin/include/real.h:27:18: > fatal error: mpfr.h: No such file or directory I did some search but found few relevant results. Any idea what's going on? OS: Ubuntu 11.04. GCC:4.5.2. gcc-4.5-plugin-dev is installed. Thanks in advance! -- Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llv...
2012 Jul 15
3
[LLVMdev] Compiling llvm and Clang on Linux
....redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --disable-gnu-unique-object --with-as=/usr/libexec/binutils220/as --enable-languages=c,c++,fortran --disable-libgcj --with-mpfr=/builddir/build/BUILD/gcc-4.4.6-20110824/obj-i386-redhat-linux6E/mpfr-install/ --with-ppl=/builddir/build/BUILD/gcc-4.4.6-20110824/obj-i386-redhat-linux6E/ppl-install --with-cloog=/builddir/build/BUILD/gcc-4.4.6-20110824/obj-i386-redhat-linux6E/cloog-install --with-tune=generic --with-arch=i586...
2012 Jun 22
0
[LLVMdev] Compile error of latest Dragonegg on Ubuntu with GCC 4.5
>> /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/plugin/include/real.h:27:18: >> fatal error: mpfr.h: No such file or directory > > I did some search but found few relevant results. > Any idea what's going on? Do you have MPFR installed? -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
2016 Sep 10
1
c(<Matrix>, <Matrix>) / help(dotsMethods) etc
...1,] 1 . . >> [2,] . 1 . >> [3,] . . 1 >> >>> >> ---------------------------------------------- >> >> BTW, I (and the package users) suffer from exactly the same >> problem with the "MPFR" (multi precision numbers) provided by my >> package Rmpfr: >> >>> require(Rmpfr) >>> c(mpfr(3,100), 1/mpfr(7, 80)) ## works fine >> 2 'mpfr' numbers of precision 80 .. 100 bits >> [1] 3 0.1...
2012 Jun 22
1
[LLVMdev] Compile error of latest Dragonegg on Ubuntu with GCC 4.5
Yest. thanks. I just resolved this error by installing MPFR, MPC and GMP(by the way, these are not listed as prerequisites in the website.). But other errors come: /home/xxx/llvm/tools/dragonegg/src/TypeConversion.cpp: In function > ‘llvm::FunctionType* ConvertArgListToFnType(tree_node*, > llvm::ArrayRef<tree_node*>, tree_node*, bool, llvm::Cal...
2011 Jan 07
4
how to calculate this natural logarithm
Hello I want to calculate natural logarithm of sum of combinations as follow: (R code) { com_sum=choose(2000000,482)*choose(1000000,118)+choose(2000000,483)*choose(1000000,117)+...+choose(2000000,i)*choose(1000000,600-i)+...+choose(2000000,600)*choose(1000000,0) #calculate the sum result=log(com_sum) #calculate the log of the sum } But
2012 Jul 15
0
[LLVMdev] Compiling llvm and Clang on Linux
...able-bootstrap --enable-shared --enable-threads=posix > --enable-checking=release --with-system-zlib --enable-__cxa_atexit > --disable-libunwind-exceptions --disable-gnu-unique-object > --with-as=/usr/libexec/binutils220/as --enable-languages=c,c++,fortran > --disable-libgcj > --with-mpfr=/builddir/build/BUILD/gcc-4.4.6-20110824/obj-i386-redhat-linux6E/mpfr-install/ > > --with-ppl=/builddir/build/BUILD/gcc-4.4.6-20110824/obj-i386-redhat-linux6E/ppl-install > > --with-cloog=/builddir/build/BUILD/gcc-4.4.6-20110824/obj-i386-redhat-linux6E/cloog-install > --with-tune=ge...
2015 Apr 30
0
R CMD check and missing imports from base packages
...ll be methods, S3 and S3 and there is often no conflict and no masking at all for all these, so I am claiming that your "statistics" are quite a bit biased, and probably most of the more common names are proper methods. There is another issue, I've wanted to raise, exemplified by my Rmpfr package [interface to the MPFR C library for high-accuracy floating point computations]: As it defines "mpfr"-ified versions of standard R functions many of which are *not* generic, it must mask them. E.g, currently, the following "are masked" messages (when attaching Rmpfr)...
2016 Sep 10
0
c(<Matrix>, <Matrix>) / help(dotsMethods) etc
...] NA > > [[2]] > [,1] [,2] [,3] > [1,] 1 . . > [2,] . 1 . > [3,] . . 1 > >> > ---------------------------------------------- > > BTW, I (and the package users) suffer from exactly the same > problem with the "MPFR" (multi precision numbers) provided by my > package Rmpfr: > >> require(Rmpfr) >> c(mpfr(3,100), 1/mpfr(7, 80)) ## works fine > 2 'mpfr' numbers of precision 80 .. 100 bits > [1] 3 0.14285714285714285714285708 > >> c(pi, 1...
2016 Apr 04
2
RFC: Constant folding math functions for long double
Hi Neil, I admit that at this point I haven't considered the implications of the license MPFR is under, and at the moment I'm sticking my head in the sand until and unless we want to go down this path. My expectation is that we would use their exposed API - so we'd #include <mpfr.h> and use functions from there, linking against -lmpfr and -lgmp. I admit that this option would...
2016 Apr 04
2
RFC: Constant folding math functions for long double
On Mon, Apr 04, 2016 at 09:49:24AM -0700, Reid Kleckner via llvm-dev wrote: > An optional MPFR dependency would also be pretty painful. I expect it will > frequently be missing and will not be exercised by most buildbots. IMO if constant folding of transcendental functions makes a significant difference for your program, you likely are doing something strange already. I don't think i...
2011 Oct 28
1
Question about how to compile .zip for Windows
Dear all, Thanks for Baptiste's help. He offered me the website http://win-builder.r-project.org/ This is very good. However, I face another problem recently that I need to program a package, which require 'multiple-precision floating-point computations'. I found that MPFR is very good tools. It can be installed on the linux system, if you want to use it just include some head files. So my problem is my computer can only compile the linux version package not the windows .zip version. And also If I want to use the website above, it doesn't install the MPFR. I wan...
2012 Jul 07
1
creating a '[' method for an S4 class
Hi, I'm working on an S4 class that is expected to behave like an array. I have some difficulties when defining '[' and I wonder if someone could point me to the right direction: 1) Call the S4 object "obj" 2) Assume dim(obj) = c(10, 4, 2) 3) Suppose someone calls: obj[1:3,] , which is a mistake, given dim(obj); how do I detect such situations? Thank you very much for